Sha256: e76c21dcbe6bf3784090c2f996432b47c65b4000f24f40be3f1b3d8750e04de1

Contents?: true

Size: 445 Bytes

Versions: 12

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe DHS::Data do
  context 'equality' do
    before do
      class Record < DHS::Record
        endpoint 'http://depay.fi/records'
      end
    end

    let(:raw) do
      { name: 'Steve' }
    end

    it 'is equal when two data objects share the same raw data' do
      expect(
        DHS::Data.new(raw, nil, Record)
      ).to eq DHS::Data.new(raw, nil, Record)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 spec/data/equality_spec.rb
dhs-1.5.0 spec/data/equality_spec.rb
dhs-1.4.2 spec/data/equality_spec.rb
dhs-1.4.1 spec/data/equality_spec.rb
dhs-1.4.0 spec/data/equality_spec.rb
dhs-1.3.0 spec/data/equality_spec.rb
dhs-1.2.0 spec/data/equality_spec.rb
dhs-1.1.0 spec/data/equality_spec.rb
dhs-1.0.3 spec/data/equality_spec.rb
dhs-1.0.2 spec/data/equality_spec.rb
dhs-1.0.1 spec/data/equality_spec.rb
dhs-1.0.0 spec/data/equality_spec.rb