Skip to content

Commit

Permalink
Updated test for Worker.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalatero committed Jun 10, 2009
1 parent 60c56aa commit 7478a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/queue_stick/worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class RunLoopTestWorker < QueueStick::Worker

it "should not call delete_message_from_queue if process fails" do
@worker.should_receive(:process).and_raise(Exception)
@worker.should_receive(:recover).and_return(true)
@worker.should_receive(:recover).with(anything).and_return(true)
@worker.should_not_receive(:delete_message_from_queue)
@worker.run_loop
end
Expand Down

0 comments on commit 7478a9d

Please sign in to comment.