Sha256: dde9581e0fe4a1a03ec0c474cf609b5daeb9a8035c137392f6e2c4089b84b92d
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
require 'update_helper' module Alf module Update describe Inserter, 'restrict' do let(:expr) { restrict(suppliers, :name => "Jones") } let(:inserted) { [ { :name => "Jones", :city => "London" } ] } let(:expected) { [ { :name => "Jones", :city => "London" } ] } 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