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