aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract_unit.rb
diff options
context:
space:
mode:
authorlest <just.lest@gmail.com>2011-11-30 18:34:16 +0300
committerlest <just.lest@gmail.com>2011-11-30 18:57:12 +0300
commit565d92f57891c1114801a27cf45ba8ee4ec02cf9 (patch)
tree9e2cea346c9297f18db819769564747c715f3450 /actionpack/test/abstract_unit.rb
parent2b96b20f3a8deff61d9a8dd5866cae5251ea5e1c (diff)
downloadrails-565d92f57891c1114801a27cf45ba8ee4ec02cf9.tar.gz
rails-565d92f57891c1114801a27cf45ba8ee4ec02cf9.tar.bz2
rails-565d92f57891c1114801a27cf45ba8ee4ec02cf9.zip
fix method redefined warnings in tests
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
-rw-r--r--actionpack/test/abstract_unit.rb5
1 files changed, 5 insertions, 0 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