diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-16 19:21:12 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-20 13:05:29 +0300 |
commit | d50fb21e4d7a526de3b0edb9bb5032d4be6175ae (patch) | |
tree | 9375b4873775117a66166305d04abe5f2d42783a /guides/rails_guides | |
parent | e0cf042fa2c499c2e0b8fe95ec02ed79f9178feb (diff) | |
download | rails-d50fb21e4d7a526de3b0edb9bb5032d4be6175ae.tar.gz rails-d50fb21e4d7a526de3b0edb9bb5032d4be6175ae.tar.bz2 rails-d50fb21e4d7a526de3b0edb9bb5032d4be6175ae.zip |
Allow `:queue` option to `assert_performed_jobs`.
If the `:queue` option is specified, then only the job(s) enqueued to a specific
queue will be performed.
Example:
```
def test_assert_performed_jobs_with_queue_option
assert_performed_jobs 1, queue: :some_queue do
HelloJob.set(queue: :some_queue).perform_later("jeremy")
HelloJob.set(queue: :other_queue).perform_later("bogdan")
end
end
```
Diffstat (limited to 'guides/rails_guides')
0 files changed, 0 insertions, 0 deletions