File: serializable.rb

package info (click to toggle)
ruby-rbnacl 7.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: ruby: 2,927; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# encoding: binary
# frozen_string_literal: true

RSpec.shared_examples "serializable" do
  context "serialization" do
    it "supports #to_s" do
      expect(subject.to_s).to be_a String
    end

    it "supports #to_str" do
      expect(subject.to_str).to be_a String
    end

    it "supports #inspect" do
      expect(subject.inspect).to be_a String
    end
  end
end