提交 ff4eba9c 编写于 作者: C Carlos Antonio da Silva

Fix failing test, TestQueue#contents is not #jobs

上级 d8c3ad73
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册