Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Dec 1, 2011
1 parent f613f27 commit 055c42a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/spec/lib/query/allocations_spec.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 055c42a

Please sign in to comment.