Sha256: 323287cab2d9c1fc3472c383e1b6a0cc7d93ba9b94b0deba1c38c9cf73bd4b1f
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 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 described_class.new({ href: 'http://www.local.ch/v2/stuff' }, nil, Record) end let(:loaded_data) do described_class.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lhs-3.0.3 | spec/data/merge_spec.rb |
lhs-3.0.2 | spec/data/merge_spec.rb |
lhs-3.0.1 | spec/data/merge_spec.rb |