Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added missing specs for not modifying queues when using AJ test helpers | Wojciech Wnętrzak | 2015-10-07 | 1 | -0/+21 |
| | |||||
* | Merge pull request #21854 from morgoth/fix-serializing-at-option-in-aj-matchers | Yves Senn | 2015-10-05 | 1 | -4/+22 |
|\ | | | | | | | Fixed serializing `:at` option for `assert_eqnueued_with` and `assert_performed_with` | ||||
| * | Fixed serializing `:at` option for `assert_enqueued_with` and ↵ | Wojciech Wnętrzak | 2015-10-03 | 1 | -4/+16 |
|/ | | | | `assert_performed_with` | ||||
* | Support passing array to `assert_enqueued_jobs` in `:only` option | Wojciech Wnętrzak | 2015-10-03 | 1 | -0/+18 |
| | |||||
* | Make assert_enqueued_with and assert_performed_with returns the matched job | Jean Boussier | 2015-08-10 | 1 | -0/+22 |
| | |||||
* | Merge pull request #19969 from y-yagi/fix_job_helper_method | Yves Senn | 2015-05-01 | 1 | -0/+22 |
| | | | | match a expected value with message of `assert_equal` in AJ helper methods | ||||
* | Fix leaky `only: …` option for Active Job assertions | Jeremy Kemper | 2015-03-06 | 1 | -0/+8 |
| | | | | | | | The filter was set on the pseudo-global TestAdapter but not restored to its original value. See e818f65770fe115ab1cc7fbacc0e7e94d92af6a4 | ||||
* | Add an `:only` option to `perform_enqueued_jobs` to filter jobs based on | Michael Ryan | 2015-02-06 | 1 | -0/+78 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | -0/+39 |
| | |||||
* | Add :only option to assert_no_enqueued_jobs | George Claghorn | 2015-01-08 | 1 | -0/+19 |
| | |||||
* | Add :only option to assert_enqueued_jobs | George Claghorn | 2015-01-07 | 1 | -0/+40 |
| | | | | With the option, assert_enqueued_jobs will check the number of times a specific kind of job is enqueued. | ||||
* | Add perform_enqueued_jobs | Fábio Luiz Nery de Miranda | 2014-11-25 | 1 | -13/+23 |
| | | | | | | | | | 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 | ||||
* | Merge pull request #17005 from y-yagi/fix_aj_test_helper | Yves Senn | 2014-09-23 | 1 | -1/+3 |
|\ | | | | | | | add message to `assert` in `assert_enqueued_with` | ||||
| * | add message to `assert` in `assert_enqueued_with` | yuuji.yaginuma | 2014-09-23 | 1 | -1/+3 |
|/ | |||||
* | Active Job refactoring | Cristian Bica | 2014-09-03 | 1 | -33/+33 |
| | |||||
* | [ActiveJob] TestCase (Will squash before merge) | Abdelkader Boudih | 2014-09-02 | 1 | -3/+2 |
| | |||||
* | [ActiveJob] TestCase | Abdelkader Boudih | 2014-09-02 | 1 | -11/+9 |
| | |||||
* | [ActiveJob] TestCase | Abdelkader Boudih | 2014-09-02 | 1 | -0/+217 |