Sha256: 02c86130fc27856cb9b33ebe542a8fe4df7d2ae0af4e97554931dbab005d32b1

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

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

      let(:expr)     { suppliers          }
      let(:inserted) { [ {:id => 1} ]     }

      subject{ insert(expr, inserted) }

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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-update/inserter/test_identifier.rb