diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-10-28 14:53:31 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-28 14:53:31 +0900 |
commit | bf6456e05395583809f4565844a8dc088431fce7 (patch) | |
tree | 311a21eb9166548455267bc75b0213d7cbde865e | |
parent | 81d4834a8565d5fa678b28c4e886cab1be04791a (diff) | |
parent | 65e08da68f6b344243f3c7bba0aee68342ee2228 (diff) | |
download | rails-bf6456e05395583809f4565844a8dc088431fce7.tar.gz rails-bf6456e05395583809f4565844a8dc088431fce7.tar.bz2 rails-bf6456e05395583809f4565844a8dc088431fce7.zip |
Merge pull request #31003 from y-yagi/add_load_hook_for_system_test_case
Add load hook for `ActionDispatch::SystemTestCase`
-rw-r--r-- | actionpack/lib/action_dispatch/system_test_case.rb | 2 | ||||
-rw-r--r-- | guides/source/engines.md | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/system_test_case.rb b/actionpack/lib/action_dispatch/system_test_case.rb index 78efba9eee..7246e01cff 100644 --- a/actionpack/lib/action_dispatch/system_test_case.rb +++ b/actionpack/lib/action_dispatch/system_test_case.rb @@ -131,6 +131,8 @@ module ActionDispatch end driven_by :selenium + + ActiveSupport.run_load_hooks(:action_dispatch_system_test_case, self) end SystemTestCase.start_application diff --git a/guides/source/engines.md b/guides/source/engines.md index a9b841e3bf..b226eac347 100644 --- a/guides/source/engines.md +++ b/guides/source/engines.md @@ -1501,6 +1501,7 @@ To hook into the initialization process of one of the following classes use the | `ActionController::Base` | `action_controller` | | `ActionController::TestCase` | `action_controller_test_case` | | `ActionDispatch::IntegrationTest` | `action_dispatch_integration_test` | +| `ActionDispatch::SystemTestCase` | `action_dispatch_system_test_case` | | `ActionMailer::Base` | `action_mailer` | | `ActionMailer::TestCase` | `action_mailer_test_case` | | `ActionView::Base` | `action_view` | |