- 06 10月, 2018 1 次提交
-
-
由 Alan Wu 提交于
Using `included` to define `attr_acessor` and `attr_writer` is causing these methods to not show up in the documentation.
-
- 29 9月, 2018 2 次提交
-
-
由 Yasuo Honda 提交于
Since Rails 6.0 will support Ruby 2.4.1 or higher `# frozen_string_literal: true` magic comment is enough to make string object frozen. This magic comment is enabled by `Style/FrozenStringLiteralComment` cop. * Exclude these files not to auto correct false positive `Regexp#freeze` - 'actionpack/lib/action_dispatch/journey/router/utils.rb' - 'activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb' It has been fixed by https://github.com/rubocop-hq/rubocop/pull/6333 Once the newer version of RuboCop released and available at Code Climate these exclude entries should be removed. * Replace `String#freeze` with `String#-@` manually if explicit frozen string objects are required - 'actionpack/test/controller/test_case_test.rb' - 'activemodel/test/cases/type/string_test.rb' - 'activesupport/lib/active_support/core_ext/string/strip.rb' - 'activesupport/test/core_ext/string_ext_test.rb' - 'railties/test/generators/actions_test.rb'
-
由 Mohit Natoo 提交于
* Documentation clarity in ActiveJob::TestHelper [ci skip] * Documentation for options [Mohit Natoo + Rafael Mendonça França]
-
- 27 9月, 2018 1 次提交
-
-
由 Edouard CHIN 提交于
- When calling `assert_performed_with`/`assert_enqueued_with`, the +args+ needs to match exactly what the job get passed. Some jobs can have lot of arguments, or even a simple hash argument has many key. This is not convenient to test as most tests doesn't need to check if the arguments matches perfectly. This PR make it possible to only check if a subset of arguments were passed to the job.
-
- 26 9月, 2018 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 24 9月, 2018 1 次提交
-
-
由 Kasper Timm Hansen 提交于
Similar to Action View's and Action Controller's instrument helpers.
-
- 22 9月, 2018 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 21 9月, 2018 1 次提交
-
-
由 Sharang Dashputre 提交于
The test helpers now treat `{ a: 1, b: 2 }` and `{ b: 2, a: 1 }` as equals
-
- 17 9月, 2018 2 次提交
-
-
由 J Smith 提交于
psqlrc files can affect the execution of commands in ways that can hold up execution by blocking or otherwise cause unexpected side effects and should best be ignored when using psql programmatically.
-
由 bogdanvlviv 提交于
Currently when executing `bundle exec rake test:integration` under `activejob/` derectory, it prints helpful info like: ``` (snip) *** rake aj:integration:async *** (snip) *** rake aj:integration:delayed_job *** (snip) ``` but there is no defined `:aj` scope in `activejob/Rakefile`, so I think output should be like: ``` (snip) *** rake test:integration:async *** (snip) *** rake test:integration:delayed_job *** (snip) ``` By the way `rake test:integration` doesn't work if execute it without prepending `bundle exec` to that command. It is probably what we should fix too.
-
- 16 9月, 2018 1 次提交
-
-
由 bogdanvlviv 提交于
Also this commit removes `:wait` from payload of `retry_stopped.active_job`. Related to https://github.com/rails/rails/pull/33751#discussion_r214140008 Follow up #33751 /cc @kaspth, @rafaelfranca
-
- 14 9月, 2018 1 次提交
-
-
由 Sharang Dashputre 提交于
Fix typo `Instrinsic` -> `Intrinsic`
-
- 13 9月, 2018 2 次提交
-
-
由 bogdanvlviv 提交于
Since these changes related to the public API, I think we should add changelog entries. Related to #33838, #33849
-
由 Ricardo Díaz 提交于
As @dhh brings up, the point of `ActionDispatch::IntegrationTest` is to allow users to test the integration of all the pieces called by a controller. Asserting about the emails and jobs queued is part of that task. This commit includes the `ActionMailer::TestHelper` and `ActiveJob::TestHelper` modules when the ActionMailer and ActiveJob railties are initialized respectively.
-
- 12 9月, 2018 1 次提交
-
-
由 Sharang Dashputre 提交于
Fix typo `wiht` -> `with`
-
- 09 9月, 2018 2 次提交
-
-
由 Graham Turner 提交于
-
由 yuuji.yaginuma 提交于
Without `perform_enqueued_jobs`, job are not executed and assertion is not done.
-
- 08 9月, 2018 1 次提交
-
-
由 stoodfarback 提交于
The priority wasn't being passed from ActiveJob to Backburner, despite priority being supported. This also brings it inline with the docs, which mark Backburner as supporting priorities in the "Backend Features" table: https://api.rubyonrails.org/classes/ActiveJob/QueueAdapters.html
-
- 31 8月, 2018 1 次提交
-
-
由 Steve S 提交于
-
- 30 8月, 2018 1 次提交
-
-
由 Steve S 提交于
-
- 29 8月, 2018 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 27 8月, 2018 1 次提交
-
-
由 Kevin Deisz 提交于
-
- 25 8月, 2018 1 次提交
-
-
由 Kevin Deisz 提交于
-
- 22 8月, 2018 1 次提交
-
-
由 utilum 提交于
This patch corrects a duplicate method name introduced in #33635. Also fixes typo in method names.
-
- 20 8月, 2018 9 次提交
-
-
由 bogdanvlviv 提交于
-
由 bogdanvlviv 提交于
-
由 bogdanvlviv 提交于
Example: ``` def test_assert_performed_with MyJob.perform_later(1,2,3) perform_enqueued_jobs assert_performed_with(job: MyJob, args: [1,2,3], queue: 'high') end ``` Follow up #33626.
-
由 bogdanvlviv 提交于
Execution of `assert_performed_jobs`, and `assert_no_performed_jobs` without a block should respect passed `:except`, `:only`, and `:queue` options.
-
由 bogdanvlviv 提交于
Note that it removes changelog entry of #33265 since the entry in this commits includes that too.
-
由 bogdanvlviv 提交于
If the `:queue` option is specified, then only the job(s) enqueued to a specific queue will not be performed. Example: ``` def test_assert_no_performed_jobs_with_queue_option assert_no_performed_jobs queue: :some_queue do HelloJob.set(queue: :other_queue).perform_later("jeremy") end end ```
-
由 bogdanvlviv 提交于
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 ```
-
由 bogdanvlviv 提交于
Set ```` queue_adapter.perform_enqueued_jobs = true queue_adapter.perform_enqueued_at_jobs = true queue_adapter.filter = only queue_adapter.reject = except queue_adapter.queue = queue ``` if block given. Execution of `flush_enqueued_jobs` doesn't require that.
-
由 bogdanvlviv 提交于
If the `:queue` option is specified, then only the job(s) enqueued to a specific queue will be performed. Example: ``` def test_perform_enqueued_jobs_with_queue perform_enqueued_jobs queue: :some_queue do MyJob.set(queue: :some_queue).perform_later(1, 2, 3) # will be performed HelloJob.set(queue: :other_queue).perform_later(1, 2, 3) # will not be performed end assert_performed_jobs 1 end ``` Follow up #33265 [bogdanvlviv & Jeremy Daer]
-
- 18 8月, 2018 1 次提交
-
-
由 yuuji.yaginuma 提交于
Currently, the execution count increments after deserializes arguments. Therefore, if an error occurs with deserialize, it retries indefinitely. In order to prevent this, the count is moved before deserialize. Fixes #33344.
-
- 16 8月, 2018 2 次提交
-
-
由 bogdanvlviv 提交于
Follow up #33626
-
由 Kevin Deisz 提交于
Performs all of the jobs that have been enqueued up to this point in the test.
-
- 10 8月, 2018 1 次提交
-
-
由 Mohit Natoo 提交于
-
- 09 8月, 2018 1 次提交
-
-
由 Mohit Natoo 提交于
-
- 24 7月, 2018 1 次提交
-
-
由 Paul McMahon 提交于
http links will be redirected to the https version, but still better to just directly link to the https version.
-
- 21 7月, 2018 1 次提交
-
-
由 Kasper Timm Hansen 提交于
-