From 0b29c7bb7b40f66977e374667daf7239970bf635 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 9 Aug 2012 14:25:35 -0700 Subject: switch callbacks to minitest hooks --- actionpack/test/abstract_unit.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 56cebee678..60bf583dfd 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -159,8 +159,9 @@ class BasicController 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 @@ module ActionController 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 -- cgit v1.2.3