Permalink
Browse files

fix method redefined warnings in tests

  • Loading branch information...
1 parent 2b96b20 commit 565d92f57891c1114801a27cf45ba8ee4ec02cf9 @lest lest committed Nov 30, 2011
@@ -351,3 +351,8 @@ def stderr_logger
end
end
+module RoutingTestHelpers
+ def url_for(set, options, recall = nil)
+ set.send(:url_for, options.merge(:only_path => true, :_path_segments => recall))
+ end
+end
@@ -11,12 +11,6 @@ def rescue_action(e) raise e end
ROUTING = ActionDispatch::Routing
-module RoutingTestHelpers
- def url_for(set, options, recall = nil)
- set.send(:url_for, options.merge(:only_path => true, :_path_segments => recall))
- end
-end
-
# See RFC 3986, section 3.3 for allowed path characters.
class UriReservedCharactersRoutingTest < Test::Unit::TestCase
include RoutingTestHelpers
@@ -3,12 +3,6 @@
require 'controller/fake_controllers'
require 'active_support/core_ext/object/with_options'
-module RoutingTestHelpers
- def url_for(set, options, recall = nil)
- set.send(:url_for, options.merge(:only_path => true, :_path_segments => recall))
- end
-end
-
module ActionPack
class URLForIntegrationTest < ActiveSupport::TestCase
include RoutingTestHelpers

0 comments on commit 565d92f

Please sign in to comment.