diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-07-14 00:46:42 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:06 +0200 |
commit | b53efd21059b9d829a6617fb5b2dd86754684c60 (patch) | |
tree | 37557320c2de88ac084dc45747cdc243c0385ad2 /actionpack/test/template/test_test.rb | |
parent | b697ba9fd72ac8701747863b42082e59f13ba678 (diff) | |
download | rails-b53efd21059b9d829a6617fb5b2dd86754684c60.tar.gz rails-b53efd21059b9d829a6617fb5b2dd86754684c60.tar.bz2 rails-b53efd21059b9d829a6617fb5b2dd86754684c60.zip |
Extended url_for to handle specifying which router should be used.
A few examples:
url_for Blog::Engine, :posts_path
url_for Blog::Engine, @post
url_for Blog::Engine, :action => "main", :controller => "index"
Diffstat (limited to 'actionpack/test/template/test_test.rb')
-rw-r--r-- | actionpack/test/template/test_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/test_test.rb b/actionpack/test/template/test_test.rb index 68e790cf46..20c96824d6 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 |