Permalink
Browse files

Add a fake UrlRewriter, since instantiating it in tests happens, but …

…is basically crazysauce
  • Loading branch information...
1 parent d599e94 commit bd1cf94a29131c405650d688d672147ecc9c7670 @wycats wycats committed Aug 4, 2010
@@ -36,6 +36,7 @@ module ActionController
autoload :Dispatcher, 'action_controller/deprecated/dispatcher'
autoload :UrlWriter, 'action_controller/deprecated/url_writer'
+ autoload :UrlReriter, 'action_controller/deprecated/url_writer'
@jonahb

jonahb Aug 4, 2010

Contributor

UrlReriter -> UrlRewriter

@lukaszx0

lukaszx0 Aug 4, 2010

Member

Yep, fixed this earlier, hoped somebody will pull this after I sending pull request ;)

http://github.com/strzalek/rails/commit/ba274adb6899edf0c81b48d869b14a134a629e59

autoload :Integration, 'action_controller/deprecated/integration_test'
autoload :IntegrationTest, 'action_controller/deprecated/integration_test'
autoload :PerformanceTest, 'action_controller/deprecated/performance_test'
@@ -6,4 +6,9 @@ def self.included(klass)
klass.class_eval { include Rails.application.routes.url_helpers }
end
end
+
+ class UrlRewriter
+ def initialize(*)
+ end
+ end
end

0 comments on commit bd1cf94

Please sign in to comment.