diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-07-19 08:56:41 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-07-19 08:56:41 +0900 |
commit | 2966f9598e28e0cfa04ce9f711176d01814d60c2 (patch) | |
tree | 82650824ce0b2fa931157519131d71e63c0defac | |
parent | a03a7ce50b9dfe4a13f0cd11b69a093a5bcfd7e9 (diff) | |
download | rails-2966f9598e28e0cfa04ce9f711176d01814d60c2.tar.gz rails-2966f9598e28e0cfa04ce9f711176d01814d60c2.tar.bz2 rails-2966f9598e28e0cfa04ce9f711176d01814d60c2.zip |
Fix `warning: circular argument reference`
This fixes the following warnings:
```
rails/activejob/lib/active_job/test_helper.rb:119: warning: circular argument reference - except
rails/activejob/lib/active_job/test_helper.rb:166: warning: circular argument reference - except
```
-rw-r--r-- | activejob/lib/active_job/test_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb index dd3a709f55..2ffedf2999 100644 --- a/activejob/lib/active_job/test_helper.rb +++ b/activejob/lib/active_job/test_helper.rb @@ -116,7 +116,7 @@ module ActiveJob # HelloJob.perform_later('elfassy') # end # end - def assert_enqueued_jobs(number, only: nil, except: except, queue: nil) + def assert_enqueued_jobs(number, only: nil, except: nil, queue: nil) if block_given? original_count = enqueued_jobs_size(only: only, except: except, queue: queue) yield @@ -163,7 +163,7 @@ module ActiveJob # Note: This assertion is simply a shortcut for: # # assert_enqueued_jobs 0, &block - def assert_no_enqueued_jobs(only: nil, except: except, &block) + def assert_no_enqueued_jobs(only: nil, except: nil, &block) assert_enqueued_jobs 0, only: only, except: except, &block end |