aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/test_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/test_test.rb')
-rw-r--r--actionpack/test/template/test_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/test_test.rb b/actionpack/test/template/test_test.rb
index 68e790cf46..3d0bbba435 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
- expects(:mocha_mock_path).with(person).returns("/people/1")
+ _routes.url_helpers.expects(:hash_for_mocha_mock_path).with(person).returns("/people/1")
assert_equal '<a href="/people/1">David</a>', link_to_person(person)
end
end
@@ -47,7 +47,7 @@ class PeopleHelperTest < ActionView::TestCase
private
def with_test_route_set
with_routing do |set|
- set.draw do |map|
+ set.draw do
match 'people', :to => 'people#index', :as => :people
end
yield