spec/lib/results_spec.rb in picky-4.22.0 vs spec/lib/results_spec.rb in picky-4.23.0
- old
+ new
@@ -6,16 +6,16 @@
before(:each) do
@allocations = double :allocations
@results = described_class.new :unimportant, :amount, :offset, @allocations
end
it "forwards" do
- @allocations.should_receive(:process!).once.with :amount, :offset, nil
+ @allocations.should_receive(:process!).once.with :amount, :offset, nil, nil
@allocations.should_receive(:ids).once.with :anything
@results.ids :anything
end
it "forwards and uses amount if nothing given" do
- @allocations.should_receive(:process!).once.with :amount, :offset, nil
+ @allocations.should_receive(:process!).once.with :amount, :offset, nil, nil
@allocations.should_receive(:ids).once.with :amount
@results.ids
end
end
\ No newline at end of file