aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2016-10-21 14:44:17 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2016-10-21 14:44:17 -0700
commitb6f935bbf9b8470b370ea613dc61218849aabf89 (patch)
tree74787a9bcb7eb891e06398f82cc88989ed8550cc /activesupport
parent797f1dd63c68eb44c1af358d377cfef271e685c5 (diff)
downloadrails-b6f935bbf9b8470b370ea613dc61218849aabf89.tar.gz
rails-b6f935bbf9b8470b370ea613dc61218849aabf89.tar.bz2
rails-b6f935bbf9b8470b370ea613dc61218849aabf89.zip
Use `on_load` to trigger commandline processing code
We need to use on_load so that plugins will get the same functionality
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/test_case.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index 1c599b8851..3de4ccc1da 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -65,5 +65,7 @@ module ActiveSupport
alias :assert_not_predicate :refute_predicate
alias :assert_not_respond_to :refute_respond_to
alias :assert_not_same :refute_same
+
+ ActiveSupport.run_load_hooks(:active_support_test_case, self)
end
end