Sha256: 27ad1a57f6e010cf51ab6eb16c98aabfe21b7f888ad3dbbf09aa10340025348f

Contents?: true

Size: 372 Bytes

Versions: 10

Compression:

Stored size: 372 Bytes

Contents

# 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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbnacl-7.1.1 spec/shared/serializable.rb
rbnacl-7.1.0 spec/shared/serializable.rb
rbnacl-7.0.0 spec/shared/serializable.rb
rbnacl-6.0.1 spec/shared/serializable.rb
rbnacl-6.0.0 spec/shared/serializable.rb
rbnacl-5.0.0 spec/shared/serializable.rb
rbnacl-4.0.2 spec/shared/serializable.rb
rbnacl-4.0.1 spec/shared/serializable.rb
rbnacl-4.0.0 spec/shared/serializable.rb
rbnacl-4.0.0.pre spec/shared/serializable.rb