switch callbacks to minitest hooks

This commit is contained in:
Aaron Patterson 2012-08-09 14:25:35 -07:00
parent 6794e92b20
commit 0b29c7bb7b

@ -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