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

Version Path
lhs-14.6.5 spec/data/merge_spec.rb
lhs-14.6.4 spec/data/merge_spec.rb
lhs-14.6.3 spec/data/merge_spec.rb
lhs-14.6.2 spec/data/merge_spec.rb
lhs-14.6.1 spec/data/merge_spec.rb
lhs-14.6.0 spec/data/merge_spec.rb
lhs-14.5.0 spec/data/merge_spec.rb
lhs-14.4.0 spec/data/merge_spec.rb
lhs-14.3.4 spec/data/merge_spec.rb
lhs-14.3.3 spec/data/merge_spec.rb
lhs-14.3.2 spec/data/merge_spec.rb
lhs-14.3.1 spec/data/merge_spec.rb
lhs-14.3.0 spec/data/merge_spec.rb
lhs-14.2.0 spec/data/merge_spec.rb
lhs-14.1.1 spec/data/merge_spec.rb
lhs-14.1.0 spec/data/merge_spec.rb
lhs-14.0.3 spec/data/merge_spec.rb
lhs-14.0.2 spec/data/merge_spec.rb
lhs-14.0.1 spec/data/merge_spec.rb
lhs-14.0.0 spec/data/merge_spec.rb