Sha256: 7a6937ec9a56921b1ad7b0906343ee1a4c6ee297a638e802828e50c76cdb6a21
Contents?: true
Size: 565 Bytes
Versions: 127
Compression:
Stored size: 565 Bytes
Contents
require 'rails_helper' describe LHS::Data do before(:each) do class Record < LHS::Record endpoint ':datastore/v2/:campaign_id/feedbacks' endpoint ':datastore/v2/feedbacks' end end let(:data) do LHS::Data.new({ href: 'http://www.local.ch/v2/stuff' }, nil, Record) end let(:loaded_data) do LHS::Data.new({ href: 'http://www.local.ch/v2/stuff', id: '123123123' }, nil, Record) end context 'merging' do it 'merges data' do data.merge_raw!(loaded_data) expect(data.id).to eq loaded_data.id end end end
Version data entries
127 entries across 127 versions & 1 rubygems