diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2014-09-22 23:40:41 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2014-09-23 08:50:32 +0900 |
commit | 39bef5823ff611c8e3a066ab398e2dd763888f9a (patch) | |
tree | bd8b2145bf84dfab8a381a130da5594ba66fbab8 /activejob/lib/active_job | |
parent | 7aca4a721ee9ba7f7ba4043f7199080cf7282d62 (diff) | |
download | rails-39bef5823ff611c8e3a066ab398e2dd763888f9a.tar.gz rails-39bef5823ff611c8e3a066ab398e2dd763888f9a.tar.bz2 rails-39bef5823ff611c8e3a066ab398e2dd763888f9a.zip |
add message to `assert` in `assert_enqueued_with`
Diffstat (limited to 'activejob/lib/active_job')
-rw-r--r-- | activejob/lib/active_job/test_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb index fa0576669e..af62fae9b9 100644 --- a/activejob/lib/active_job/test_helper.rb +++ b/activejob/lib/active_job/test_helper.rb @@ -150,7 +150,7 @@ module ActiveJob matching_job = enqueued_jobs.any? do |job| args.all? { |key, value| value == job[key] } end - assert matching_job + assert matching_job, "No enqueued job found with #{args}" ensure queue_adapter.enqueued_jobs = original_enqueued_jobs + enqueued_jobs end |