Fix action mailer tests after old mapper removal

This commit is contained in:
Piotr Sarnacki 2010-09-04 13:36:35 +02:00
parent ca3936dbd6
commit b7bfeaa9fc
1 changed files with 3 additions and 5 deletions

View File

@ -56,11 +56,9 @@ class ActionMailerUrlTest < ActionMailer::TestCase
def test_signed_up_with_url
UrlTestMailer.delivery_method = :test
assert_deprecated do
AppRoutes.draw do |map|
map.connect ':controller/:action/:id'
map.welcome 'welcome', :controller=>"foo", :action=>"bar"
end
AppRoutes.draw do
match ':controller(/:action(/:id))'
match '/welcome' => "foo#bar", :as => "welcome"
end
expected = new_mail