Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
humancopy committed Sep 20, 2011
1 parent 5042244 commit d42e322
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/job_hooks_test.rb
Expand Up @@ -344,11 +344,9 @@ def self.perform(history)
assert_equal history, [:before_dequeue], "before_dequeue was not run"
end

test "a before dequeue hook that returns false should prevent the job from getting queued" do
test "a before dequeue hook that returns false should prevent the job from getting dequeued" do
history = []
@worker = Resque::Worker.new(:jobs)
Resque.dequeue(BeforeDequeueJobAbort, history)
assert_equal 0, Resque.size(:jobs)
assert_equal nil, Resque.dequeue(BeforeDequeueJobAbort, history)
end
end

Expand Down

0 comments on commit d42e322

Please sign in to comment.