Sha256: 2389c94f6d120da6a5fcc3d52a7f7bca62db742585732be0c5c3e90f53772675

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

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

      let(:expr)     { join(suppliers, parts) }
      let(:inserted) { [ {:sid => 1, :pid => 2} ] }

      subject{ insert(expr, inserted) }

      it 'requests the insertion of the tuples on :suppliers' do
        subject
        db_context.requests.should eq([
          [:insert, :suppliers, [ {:sid => 1} ] ],
          [:insert, :parts,     [ {:pid => 2} ] ],
        ])
      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_join.rb
alf-core-0.14.0 spec/unit/alf-update/inserter/test_join.rb
alf-core-0.13.1 spec/unit/alf-update/inserter/test_join.rb
alf-core-0.13.0 spec/unit/alf-update/inserter/test_join.rb