Skip to content
Browse files

switch callbacks to minitest hooks

  • Loading branch information...
1 parent 6794e92 commit 0b29c7bb7b40f66977e374667daf7239970bf635 @tenderlove tenderlove committed
Showing with 6 additions and 3 deletions.
  1. +6 −3 actionpack/test/abstract_unit.rb
View
9 actionpack/test/abstract_unit.rb
@@ -159,8 +159,9 @@ def config
end
class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
- setup do
+ def before_setup
@routes = SharedTestRoutes
+ super
end
def self.build_app(routes = nil)
@@ -291,8 +292,9 @@ def self.test_routes(&block)
class TestCase
include ActionDispatch::TestProcess
- setup do
+ def before_setup
@routes = SharedTestRoutes
+ super
end
end
end
@@ -304,8 +306,9 @@ module ActionView
class TestCase
# Must repeat the setup because AV::TestCase is a duplication
# of AC::TestCase
- setup do
+ def before_setup
@routes = SharedTestRoutes
+ super
end
end
end

0 comments on commit 0b29c7b

Please sign in to comment.
Something went wrong with that request. Please try again.