Sha256: f453034447583c04049b1b00d9a40ef7745d70086232572248564257129c1048

Contents?: true

Size: 654 Bytes

Versions: 8

Compression:

Stored size: 654 Bytes

Contents

RSpec.describe Fauna::SetRef do
  describe '#==' do
    it 'equals same set' do
      data = { match: random_ref_string, terms: random_string }
      set = Fauna::SetRef.new(data)

      expect(set).to eq(Fauna::SetRef.new(data))
    end

    it 'does not equal different set' do
      set = Fauna::SetRef.new(match: random_ref_string, terms: random_string)

      expect(set).not_to eq(Fauna::SetRef.new(match: random_ref_string, terms: random_string))
    end

    it 'does not equal other type' do
      data = { match: random_ref_string, terms: random_string }
      set = Fauna::SetRef.new(data)

      expect(set).not_to eq(data)
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
yax-fauna-3.0.1 spec/setref_spec.rb
fauna-3.0.0 spec/setref_spec.rb
fauna-2.4.0 spec/setref_spec.rb
fauna-2.3.0 spec/setref_spec.rb
fauna-2.2.0 spec/setref_spec.rb
fauna-2.1.2 spec/setref_spec.rb
fauna-2.1.1 spec/setref_spec.rb
fauna-2.1.0 spec/setref_spec.rb