Permalink
Browse files

Merge pull request #6023 from carlosantoniodasilva/fix-queue-test

Fix failing test related to TestQueue
  • Loading branch information...
2 parents d8c3ad7 + ff4eba9 commit 3e8d88f7da5226b6dd4e3aee87a84d99d668a652 @tenderlove tenderlove committed Apr 27, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 railties/lib/rails/queueing.rb
  2. +1 −1 railties/test/application/queue_test.rb
@@ -1,7 +1,7 @@
module Rails
module Queueing
# In test mode, the Rails queue is backed by an Array so that assertions
- # can be made about its contents. The test queue provides a +contents+
+ # can be made about its contents. The test queue provides a +jobs+
# method to make assertions about the queue's contents and a +drain+
# method to drain the queue and run the jobs.
#
@@ -78,7 +78,7 @@ def run
Rails.queue.push job
end
- assert_equal jobs, Rails.queue.contents
+ assert_equal jobs, Rails.queue.jobs
end
test "a custom queue implementation can be provided" do

0 comments on commit 3e8d88f

Please sign in to comment.