aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_case.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2010-03-09 21:00:24 -0600
committerJoshua Peek <josh@joshpeek.com>2010-03-09 21:00:24 -0600
commit4d2470f7daad8cebd0a69f5ea0509a41af0596b8 (patch)
tree9d936a15be606aa53ddb027b09e77622bd851b84 /actionpack/lib/action_controller/test_case.rb
parente38ea982ff8fea5b616297b458ca2c669de0d659 (diff)
downloadrails-4d2470f7daad8cebd0a69f5ea0509a41af0596b8.tar.gz
rails-4d2470f7daad8cebd0a69f5ea0509a41af0596b8.tar.bz2
rails-4d2470f7daad8cebd0a69f5ea0509a41af0596b8.zip
RouteSet#rewrite => url_for
Diffstat (limited to 'actionpack/lib/action_controller/test_case.rb')
-rw-r--r--actionpack/lib/action_controller/test_case.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index 072d289964..cdb5db32aa 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -345,7 +345,7 @@ module ActionController
:relative_url_root => nil,
:_path_segments => @request.symbolized_path_parameters)
- url, query_string = @router.rewrite(options).split("?", 2)
+ url, query_string = @router.url_for(options).split("?", 2)
@request.env["SCRIPT_NAME"] = @controller.config.relative_url_root
@request.env["PATH_INFO"] = url