Permalink
Browse files

Avoids deprecation warning running tests

  • Loading branch information...
1 parent 7f7480f commit 8a09ea6d6dbbd6a1325b3be429d96d9c45c046df @spastorino spastorino committed with jeremy Jul 4, 2010
Showing with 7 additions and 5 deletions.
  1. +7 −5 actionmailer/test/old_base/url_test.rb
@@ -28,7 +28,7 @@ def signed_up_with_url(recipient)
end
end
-class ActionMailerUrlTest < Test::Unit::TestCase
+class ActionMailerUrlTest < ActionMailer::TestCase
def encode( text, charset="UTF-8" )
quoted_printable( text, charset )
@@ -57,10 +57,12 @@ def teardown
def test_signed_up_with_url
UrlTestMailer.delivery_method = :test
-
- AppRoutes.draw do |map|
- map.connect ':controller/:action/:id'
- map.welcome 'welcome', :controller=>"foo", :action=>"bar"
+
+ assert_deprecated do
+ AppRoutes.draw do |map|
+ map.connect ':controller/:action/:id'
+ map.welcome 'welcome', :controller=>"foo", :action=>"bar"
+ end
end
expected = new_mail

0 comments on commit 8a09ea6

Please sign in to comment.