Sha256: 150bdd575e0f8ab363b8f0f7b1d977f167acac734b6743c7c6e404d2d6691ec8

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

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

      let(:expr)     { matching(suppliers, parts) }
      let(:inserted) { [ {:sid => 1 } ] }
      let(:expected) { [ {:sid => 1 } ] }

      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_matching.rb
alf-core-0.14.0 spec/unit/alf-update/inserter/test_matching.rb
alf-core-0.13.1 spec/unit/alf-update/inserter/test_matching.rb
alf-core-0.13.0 spec/unit/alf-update/inserter/test_matching.rb