aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/activerecord
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-02-24 16:17:04 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-02-25 17:53:01 -0800
commita278f2331007411b190d65577082d2710ad9a996 (patch)
tree6350fa8b723e57d57f7ddda7c812de7ad9fda260 /actionpack/test/activerecord
parent4b038f638d8c8969b2bccac82d0d7a370381680b (diff)
downloadrails-a278f2331007411b190d65577082d2710ad9a996.tar.gz
rails-a278f2331007411b190d65577082d2710ad9a996.tar.bz2
rails-a278f2331007411b190d65577082d2710ad9a996.zip
Fix all of AP's tests with the non global router
Diffstat (limited to 'actionpack/test/activerecord')
-rw-r--r--actionpack/test/activerecord/polymorphic_routes_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/activerecord/polymorphic_routes_test.rb b/actionpack/test/activerecord/polymorphic_routes_test.rb
index 7be2ef7e29..a10bb4473e 100644
--- a/actionpack/test/activerecord/polymorphic_routes_test.rb
+++ b/actionpack/test/activerecord/polymorphic_routes_test.rb
@@ -400,7 +400,7 @@ class PolymorphicRoutesTest < ActionController::TestCase
map.resources :series
end
- ActionDispatch::Routing::Routes.install_helpers(self.class)
+ self.class.send(:include, @router.named_url_helpers)
yield
end
end
@@ -422,7 +422,7 @@ class PolymorphicRoutesTest < ActionController::TestCase
end
end
- ActionDispatch::Routing::Routes.install_helpers(self.class)
+ self.class.send(:include, @router.named_url_helpers)
yield
end
end
@@ -441,7 +441,7 @@ class PolymorphicRoutesTest < ActionController::TestCase
end
end
- ActionDispatch::Routing::Routes.install_helpers(self.class)
+ self.class.send(:include, @router.named_url_helpers)
yield
end
end