Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | update `assert_no_performed_jobs` doc to use `assert_no_performed_jobs` ↵ | yuuji.yaginuma | 2016-03-30 | 1 | -18/+5 |
| | | | | method [ci skip] | ||||
* | Do not define methods in the included block | Rafael Mendonça França | 2016-02-24 | 1 | -293/+289 |
| | | | | Instance methods can be defined in the module itself | ||||
* | fix typo in `assert_enqueued_jobs` example [ci skip] | yuuji.yaginuma | 2016-02-07 | 1 | -1/+1 |
| | |||||
* | Added missing specs for not modifying queues when using AJ test helpers | Wojciech Wnętrzak | 2015-10-07 | 1 | -14/+10 |
| | |||||
* | Fixed serializing `:at` option for `assert_enqueued_with` and ↵ | Wojciech Wnętrzak | 2015-10-03 | 1 | -4/+11 |
| | | | | `assert_performed_with` | ||||
* | Support passing array to `assert_enqueued_jobs` in `:only` option | Wojciech Wnętrzak | 2015-10-03 | 1 | -1/+1 |
| | |||||
* | Do not document private methods in AJ::TestHelper | Wojciech Wnętrzak | 2015-10-02 | 1 | -5/+5 |
| | | | | [CI skip] | ||||
* | Fix typo on method name | Rafael Mendonça França | 2015-08-16 | 1 | -3/+3 |
| | | | | [Robin Dupret] | ||||
* | Make assert_enqueued_with and assert_performed_with returns the matched job | Jean Boussier | 2015-08-10 | 1 | -2/+11 |
| | |||||
* | Add `:nodoc:` for internal testing methods [ci skip] | Robin Dupret | 2015-07-28 | 1 | -2/+2 |
| | |||||
* | match a expected value with message of `assert_equal` in AJ helper methods | yuuji.yaginuma | 2015-05-01 | 1 | -2/+2 |
| | |||||
* | `ActiveJob::Base#queue_adapter` is now a `class_attribute` | Tamir Duberstein | 2015-03-11 | 1 | -3/+15 |
| | | | | | | This allows different `queue_adapters` to be used in each `ActiveJob` class heirarchy. Previously, all subclasses used a single global queue adapter. | ||||
* | `ActiveJob::QueueAdapters::*` are no longer singletons | Tamir Duberstein | 2015-03-11 | 1 | -3/+0 |
| | |||||
* | Fix leaky `only: …` option for Active Job assertions | Jeremy Kemper | 2015-03-06 | 1 | -9/+15 |
| | | | | | | | The filter was set on the pseudo-global TestAdapter but not restored to its original value. See e818f65770fe115ab1cc7fbacc0e7e94d92af6a4 | ||||
* | `ActiveJob::QueueAdapters::TestAdapter` is now a singleton | Tamir Duberstein | 2015-02-23 | 1 | -2/+4 |
| | | | | | | | | | 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. | ||||
* | Add an `:only` option to `perform_enqueued_jobs` to filter jobs based on | Michael Ryan | 2015-02-06 | 1 | -5/+50 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Fix ActiveJob assertions with a GlobalID object argument | Richard Manyanza | 2015-01-23 | 1 | -2/+12 |
| | |||||
* | Add :only option to assert_no_enqueued_jobs | George Claghorn | 2015-01-08 | 1 | -2/+10 |
| | |||||
* | Add :only option to assert_enqueued_jobs | George Claghorn | 2015-01-07 | 1 | -7/+23 |
| | | | | With the option, assert_enqueued_jobs will check the number of times a specific kind of job is enqueued. | ||||
* | ActiveJob testing improvements | Cristian Bica | 2014-12-30 | 1 | -0/+2 |
| | | | | | | | | 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 | ||||
* | Add perform_enqueued_jobs | Fábio Luiz Nery de Miranda | 2014-11-25 | 1 | -7/+29 |
| | | | | | | | | | 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 | ||||
* | Tiny documentation fixes and styling improvements | Robin Dupret | 2014-11-01 | 1 | -2/+2 |
| | | | | [ci skip] | ||||
* | - Fix mentioned shortcut, to what the shortcut actually is, and that it ↵ | Vipul A M | 2014-10-21 | 1 | -2/+2 |
| | | | | | | | | accepts blocks for `assert_no_enqueued_jobs` and `assert_no_performed_jobs` test helpers. - args => arguments when used in actual docs. [ci skip] | ||||
* | add message to `assert` in `assert_enqueued_with` | yuuji.yaginuma | 2014-09-23 | 1 | -1/+1 |
| | |||||
* | correct rdoc [ci skip] | Abdelkader Boudih | 2014-09-05 | 1 | -14/+14 |
| | |||||
* | [ActiveJob] TestCase (Will squash before merge) | Abdelkader Boudih | 2014-09-02 | 1 | -13/+16 |
| | |||||
* | [ActiveJob] TestCase | Abdelkader Boudih | 2014-09-02 | 1 | -152/+175 |
| | |||||
* | [ActiveJob] TestCase | Abdelkader Boudih | 2014-09-02 | 1 | -0/+170 |