diff options
Diffstat (limited to 'test/cases')
-rw-r--r-- | test/cases/queuing_test.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/cases/queuing_test.rb b/test/cases/queuing_test.rb index 5f1b35fee5..b6180a23dd 100644 --- a/test/cases/queuing_test.rb +++ b/test/cases/queuing_test.rb @@ -1,7 +1,19 @@ require 'helper' +require 'jobs/hello_job' + class QueuingTest < ActiveSupport::TestCase - test 'the truth' do - assert true + setup do + $BUFFER = [] + end + + test 'run queued job' do + HelloJob.enqueue + assert_equal "David says hello", $BUFFER.pop + end + + test 'run queued job with parameters' do + HelloJob.enqueue "Jamie" + assert_equal "Jamie says hello", $BUFFER.pop end end |