From ff4eba9ce2dfa5c44eac33d41798eb72962869db Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 27 Apr 2012 19:51:40 -0300 Subject: Fix failing test, TestQueue#contents is not #jobs --- railties/lib/rails/queueing.rb | 2 +- railties/test/application/queue_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'railties') diff --git a/railties/lib/rails/queueing.rb b/railties/lib/rails/queueing.rb index 81cc12b7aa..1254baf93e 100644 --- a/railties/lib/rails/queueing.rb +++ b/railties/lib/rails/queueing.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. # diff --git a/railties/test/application/queue_test.rb b/railties/test/application/queue_test.rb index 667565b031..d5d88f69cb 100644 --- a/railties/test/application/queue_test.rb +++ b/railties/test/application/queue_test.rb @@ -78,7 +78,7 @@ module ApplicationTests 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 -- cgit v1.2.3