diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-02-26 15:00:33 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-02-26 15:04:50 -0800 |
commit | 98f77e08278658ec47c9eb2e8f819d781c1eaebf (patch) | |
tree | 90fa876eb1f103ab9ca70602512c35ecc281a433 /actionpack/test/controller/resources_test.rb | |
parent | f10a019452d6864420dd15830073d93dd90de0f1 (diff) | |
download | rails-98f77e08278658ec47c9eb2e8f819d781c1eaebf.tar.gz rails-98f77e08278658ec47c9eb2e8f819d781c1eaebf.tar.bz2 rails-98f77e08278658ec47c9eb2e8f819d781c1eaebf.zip |
Rename named_url_helpers to url_helpers and url_helpers to url_for
Diffstat (limited to 'actionpack/test/controller/resources_test.rb')
-rw-r--r-- | actionpack/test/controller/resources_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index b377e5bbbc..cf0cab3690 100644 --- a/actionpack/test/controller/resources_test.rb +++ b/actionpack/test/controller/resources_test.rb @@ -1231,7 +1231,7 @@ class ResourcesTest < ActionController::TestCase @controller = "#{options[:options][:controller].camelize}Controller".constantize.new # ROUTES TODO: Figure out a way to not extend the routing helpers here - @controller.singleton_class.send(:include, @router.named_url_helpers) + @controller.singleton_class.send(:include, @router.url_helpers) @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new get :index, options[:options] @@ -1301,7 +1301,7 @@ class ResourcesTest < ActionController::TestCase def assert_singleton_named_routes_for(singleton_name, options = {}) (options[:options] ||= {})[:controller] ||= singleton_name.to_s.pluralize @controller = "#{options[:options][:controller].camelize}Controller".constantize.new - @controller.singleton_class.send(:include, @router.named_url_helpers) + @controller.singleton_class.send(:include, @router.url_helpers) @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new get :show, options[:options] |