spec/runner_spec.rb in scripterator-1.0.0 vs spec/runner_spec.rb in scripterator-1.1.0

- old
+ new

@@ -55,10 +55,12 @@ let(:num_widgets) { 3 } let(:options) { { id_list: Widget.all.map(&:id) } } it 'transforms each widget in the list' do options[:id_list].each do |id| - runner.should_receive(:fetch_record).once.with(id) + runner.should_receive(:transform_one_record) do |arg1| + arg1.id.should == id + end end subject end end