Permalink
Browse files

Stop setting UrlFor using SharedTestHelpers

  • Loading branch information...
1 parent 47fe14b commit 5797575bac580037e4a9ee686a8bcb7e56b65235 Carlhuda committed Feb 26, 2010
Showing with 4 additions and 4 deletions.
  1. +3 −3 actionpack/test/abstract_unit.rb
  2. +1 −1 actionpack/test/activerecord/polymorphic_routes_test.rb
@@ -254,10 +254,10 @@ def assert_template(options = {}, message = nil)
end
end
-# ROUTES TODO: Cleaner way to do this?
+# This stub emulates the Railtie including the URL helpers from a Rails application
module ActionController
- UrlFor = SharedTestRoutes.url_helpers
class Base
- include UrlFor
+ # ROUTES TODO: Rename SharedTestRoutes to something that reflects it's a standin for Rails.application
+ include SharedTestRoutes.url_helpers
end
end
@@ -26,7 +26,7 @@ class Series < ActiveRecord::Base
end
class PolymorphicRoutesTest < ActionController::TestCase
- include ActionController::UrlFor
+ include SharedTestRoutes.url_helpers
self.default_url_options[:host] = 'example.com'
def setup

0 comments on commit 5797575

Please sign in to comment.