Permalink
Browse files

.

  • Loading branch information...
1 parent f613f27 commit 055c42ae026c88d1f659b55e29bedaccb67c627a @floere committed Dec 1, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 server/spec/lib/query/allocations_spec.rb
@@ -94,10 +94,10 @@
end
it 'should call the process! method right' do
@allocation1.should_receive(:process!).once.with(3,1).and_return [1, 2, 3]
- @allocation2.should_receive(:process!).never
+ @allocation2.should_receive(:process!).once.with(0,0).and_return [] # TODO Actually ok?
@allocation3.should_receive(:process!).never
- @allocations.process! @amount, @offset, true
+ @allocations.process! @amount, @offset, 0
end
end
context 'larger amount' do
@@ -107,10 +107,10 @@
end
it 'should call the process! method right' do
@allocation1.should_receive(:process!).once.with(1,0).and_return [1]
- @allocation2.should_receive(:process!).never
+ @allocation2.should_receive(:process!).once.with(0,0).and_return [] # TODO Actually ok?
@allocation3.should_receive(:process!).never
- @allocations.process! @amount, @offset, true
+ @allocations.process! @amount, @offset, 0
end
end
end

0 comments on commit 055c42a

Please sign in to comment.