aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2011-06-06 14:13:06 +0200
committerthedarkone <thedarkone2@gmail.com>2011-07-25 13:43:02 +0200
commit036f77574d5cd095b9ea78e2fd927c8d7764bd31 (patch)
treece5f8e923f5acee297bfdacd3d6bd271f5c90339 /actionpack/test/template
parent02691d3516e68b2de5545ec7a495024a377f89fc (diff)
downloadrails-036f77574d5cd095b9ea78e2fd927c8d7764bd31.tar.gz
rails-036f77574d5cd095b9ea78e2fd927c8d7764bd31.tar.bz2
rails-036f77574d5cd095b9ea78e2fd927c8d7764bd31.zip
Make polymorphic_url calls go through application helpers again.
This brings back the ability to overwrite/extend url generating methods in application heleprs.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/test_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/test_test.rb b/actionpack/test/template/test_test.rb
index 3d0bbba435..bf789cd8b7 100644
--- a/actionpack/test/template/test_test.rb
+++ b/actionpack/test/template/test_test.rb
@@ -39,7 +39,7 @@ class PeopleHelperTest < ActionView::TestCase
with_test_route_set do
person = mock(:name => "David")
person.class.extend ActiveModel::Naming
- _routes.url_helpers.expects(:hash_for_mocha_mock_path).with(person).returns("/people/1")
+ expects(:mocha_mock_path).with(person).returns("/people/1")
assert_equal '<a href="/people/1">David</a>', link_to_person(person)
end
end