diff --git a/actionmailer/test/url_test.rb b/actionmailer/test/url_test.rb index 9b2b38d9e8..0536e83098 100644 --- a/actionmailer/test/url_test.rb +++ b/actionmailer/test/url_test.rb @@ -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