From 036f77574d5cd095b9ea78e2fd927c8d7764bd31 Mon Sep 17 00:00:00 2001 From: thedarkone Date: Mon, 6 Jun 2011 14:13:06 +0200 Subject: Make polymorphic_url calls go through application helpers again. This brings back the ability to overwrite/extend url generating methods in application heleprs. --- actionpack/test/template/test_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/test/template') 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 'David', link_to_person(person) end end -- cgit v1.2.3