spec/lib/query/live_spec.rb in picky-0.2.1 vs spec/lib/query/live_spec.rb in picky-0.2.2
- old
+ new
@@ -29,11 +29,11 @@
end
it "should generate a max amount of results from allocations" do
allocations = stub :allocations
@query.should_receive(:sorted_allocations).and_return allocations
- @query.should_receive(:results_from).once.with(allocations, 0).and_return stub(:results, :prepare! => true)
+ @query.should_receive(:results_from).once.with(0, allocations).and_return stub(:results, :prepare! => true)
@query.execute 'some query', 0
end
end
@@ -51,10 +51,10 @@
end
it "should generate a result with 0 duration" do
@query.results_from(@allocations).duration.should == 0
end
it "should generate a result with the allocations" do
- @query.results_from(@allocations).allocations.should == @allocations
+ @query.results_from(0, @allocations).allocations.should == @allocations
end
end
end
end
\ No newline at end of file