require 'update_helper' module Alf module Update describe Inserter, 'not_matching' do let(:expr) { not_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