Sha256: e5dc91b0e406a84e1076d657ec83a4c2f07eb581a129a1e067fceb28329a4400

Contents?: true

Size: 336 Bytes

Versions: 6

Compression:

Stored size: 336 Bytes

Contents

# encoding: binary

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbnacl-3.1.1 spec/shared/serializable.rb
rbnacl-3.1.0 spec/shared/serializable.rb
rbnacl-3.0.1 spec/shared/serializable.rb
rbnacl-3.0.0 spec/shared/serializable.rb
rbnacl-2.0.0 spec/shared/serializable.rb
rbnacl-2.0.0.pre spec/shared/serializable.rb