aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/test_help.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb
index d52bb46728..5cf44e6331 100644
--- a/railties/lib/rails/test_help.rb
+++ b/railties/lib/rails/test_help.rb
@@ -27,15 +27,13 @@ if defined?(ActiveRecord::Base)
end
class ActionController::TestCase
- def setup
+ setup do
@routes = Rails.application.routes
- super
end
end
class ActionDispatch::IntegrationTest
- def setup
+ setup do
@routes = Rails.application.routes
- super
end
end