Sha256: f837b04c88ad1148786191df73132a0db8be81d612de26fc1732460a79fcbc8d

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

require 'update_helper'
module Alf
  module Update
    describe Inserter, 'compact' do

      let(:expr)     { compact(suppliers) }
      let(:inserted) { [ {:name => "Jones"} ] }
      let(:expected) { [ {:name => "Jones"} ] }

      subject{ insert(expr, inserted) }

      it 'requests the insertion of the tuples on :suppliers' do
        subject
        db_context.requests.should eq([ [:insert, :suppliers, expected] ])
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-update/inserter/test_compact.rb
alf-core-0.14.0 spec/unit/alf-update/inserter/test_compact.rb
alf-core-0.13.1 spec/unit/alf-update/inserter/test_compact.rb
alf-core-0.13.0 spec/unit/alf-update/inserter/test_compact.rb