diff options
author | José Valim <jose.valim@gmail.com> | 2011-11-30 08:07:51 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-11-30 08:07:51 -0800 |
commit | 3b07bb33e155006071b62cec53481af197df7ad9 (patch) | |
tree | 3168f09ecd36514889690db5b30ca989cb53d579 /actionpack | |
parent | 2b96b20f3a8deff61d9a8dd5866cae5251ea5e1c (diff) | |
parent | 6ce924fa9f8ab2d96d8d78461d9a88aa0e99ec7b (diff) | |
download | rails-3b07bb33e155006071b62cec53481af197df7ad9.tar.gz rails-3b07bb33e155006071b62cec53481af197df7ad9.tar.bz2 rails-3b07bb33e155006071b62cec53481af197df7ad9.zip |
Merge pull request #3810 from lest/fix-warnings
fix method redefined warnings in tests
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 5 | ||||
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 6 | ||||
-rw-r--r-- | actionpack/test/controller/url_for_integration_test.rb | 6 |
3 files changed, 5 insertions, 12 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 680d562379..d191a203dd 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -351,3 +351,8 @@ module ActionDispatch 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 diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 5bf68decca..4a67380f59 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -11,12 +11,6 @@ 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 diff --git a/actionpack/test/controller/url_for_integration_test.rb b/actionpack/test/controller/url_for_integration_test.rb index 7b734ff0fb..451ea6027d 100644 --- a/actionpack/test/controller/url_for_integration_test.rb +++ b/actionpack/test/controller/url_for_integration_test.rb @@ -3,12 +3,6 @@ require 'abstract_unit' 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 |