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