diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-10-28 12:42:21 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-10-28 12:50:10 +0900 |
commit | 65e08da68f6b344243f3c7bba0aee68342ee2228 (patch) | |
tree | 6403419656ccc87e4f5dcfa95b34657aeff7049f /actionpack/lib/action_dispatch/system_test_case.rb | |
parent | 12de5e202ddfca27cccc5965b3048e88718a9ace (diff) | |
download | rails-65e08da68f6b344243f3c7bba0aee68342ee2228.tar.gz rails-65e08da68f6b344243f3c7bba0aee68342ee2228.tar.bz2 rails-65e08da68f6b344243f3c7bba0aee68342ee2228.zip |
Add load hook for `ActionDispatch::SystemTestCase`
This is useful to extend `SystemTestCase`.
Also, since other test classes already have load hooks, should also be
in `SystemTestCase`.
Ref: 0510208dd1ff23baa619884c0abcae4d141fae53
Diffstat (limited to 'actionpack/lib/action_dispatch/system_test_case.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/system_test_case.rb | 2 |
1 files changed, 2 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 |