- 01 5月, 2015 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 12 3月, 2015 2 次提交
-
-
由 Tamir Duberstein 提交于
This allows different `queue_adapters` to be used in each `ActiveJob` class heirarchy. Previously, all subclasses used a single global queue adapter.
-
由 Tamir Duberstein 提交于
-
- 07 3月, 2015 1 次提交
-
-
由 Jeremy Kemper 提交于
The filter was set on the pseudo-global TestAdapter but not restored to its original value. See e818f657
-
- 24 2月, 2015 1 次提交
-
-
由 Tamir Duberstein 提交于
Since `ActiveJob::TestHelper` globally sets `ActiveJob::Base.queue_adapter` on setup, there is no benefit in instantiating a new `TestAdapter` per tests. The original rationale was to allow parallel tests to run without interference, but since they'd all mutate the global `ActiveJob::Base.queue_adapter`, that was never realized.
-
- 07 2月, 2015 1 次提交
-
-
由 Michael Ryan 提交于
type. This allows specific jobs to be tested, while preventing others from being performed unnecessarily. Example: def test_hello_job assert_performed_jobs 1, only: HelloJob do HelloJob.perform_later('jeremy') LoggingJob.perform_later end end An array may also be specified, to support testing multiple jobs. Example: def test_hello_and_logging_jobs assert_nothing_raised do assert_performed_jobs 2, only: [HelloJob, LoggingJob] do HelloJob.perform_later('jeremy') LoggingJob.perform_later('stewie') RescueJob.perform_later('david') end end end Fixes #18802. Trim space and document :only option.
-
- 23 1月, 2015 1 次提交
-
-
由 Richard Manyanza 提交于
-
- 08 1月, 2015 2 次提交
-
-
由 George Claghorn 提交于
-
由 George Claghorn 提交于
With the option, assert_enqueued_jobs will check the number of times a specific kind of job is enqueued.
-
- 30 12月, 2014 1 次提交
-
-
由 Cristian Bica 提交于
1. The :test adapter wasn't going through a full cycle of serialize/deserialize when performing jobs. Now it does 2. Regular AJ tests were not run for the :test adapter. Now they are 3. ActiveJob::TestHelper uses assert_valid_keys but doesn’t requires the file that implements that method. Now it does
-
- 25 11月, 2014 1 次提交
-
-
It will set proper queue_adapter state required by assert_performed_jobs assertions. Also the block version of assert_performed_jobs will make sure this state is respected. Fixes #17684
-
- 02 11月, 2014 1 次提交
-
-
由 Robin Dupret 提交于
[ci skip]
-
- 21 10月, 2014 1 次提交
-
-
由 Vipul A M 提交于
- Fix mentioned shortcut, to what the shortcut actually is, and that it accepts blocks for `assert_no_enqueued_jobs` and `assert_no_performed_jobs` test helpers. - args => arguments when used in actual docs. [ci skip]
-
- 23 9月, 2014 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 05 9月, 2014 1 次提交
-
-
由 Abdelkader Boudih 提交于
-
- 02 9月, 2014 3 次提交
-
-
由 Abdelkader Boudih 提交于
-
由 Abdelkader Boudih 提交于
-
由 Abdelkader Boudih 提交于
-