diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-04-27 14:58:04 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-04-27 14:58:04 -0700 |
commit | 0c076c00578ee58ac98108ddd8c01ac904bdaffd (patch) | |
tree | 48ccdccaba4c2f5b5b2fd15bebe979a3eab125f3 /railties/test | |
parent | 90e90d61cbf89aff779062cc819f2e5e71eb0f5c (diff) | |
download | rails-0c076c00578ee58ac98108ddd8c01ac904bdaffd.tar.gz rails-0c076c00578ee58ac98108ddd8c01ac904bdaffd.tar.bz2 rails-0c076c00578ee58ac98108ddd8c01ac904bdaffd.zip |
adding the `jobs` method to the test queue for getting a list of test
jobs.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/queueing/test_queue_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/queueing/test_queue_test.rb b/railties/test/queueing/test_queue_test.rb index fdceb5d1b5..cb19e67338 100644 --- a/railties/test/queueing/test_queue_test.rb +++ b/railties/test/queueing/test_queue_test.rb @@ -16,6 +16,12 @@ class TestQueueTest < ActiveSupport::TestCase @queue = Rails::Queueing::TestQueue.new end + def test_jobs + @queue.push 1 + @queue.push 2 + assert_equal [1,2], @queue.jobs + end + def test_contents assert @queue.empty? job = Job.new |