Skip to content

Commit

Permalink
Avoids deprecation warning running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino authored and jeremy committed Jul 4, 2010
1 parent 7f7480f commit 8a09ea6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions actionmailer/test/old_base/url_test.rb
Expand Up @@ -28,7 +28,7 @@ def signed_up_with_url(recipient)
end end
end end


class ActionMailerUrlTest < Test::Unit::TestCase class ActionMailerUrlTest < ActionMailer::TestCase


def encode( text, charset="UTF-8" ) def encode( text, charset="UTF-8" )
quoted_printable( text, charset ) quoted_printable( text, charset )
Expand Down Expand Up @@ -57,10 +57,12 @@ def teardown


def test_signed_up_with_url def test_signed_up_with_url
UrlTestMailer.delivery_method = :test UrlTestMailer.delivery_method = :test


AppRoutes.draw do |map| assert_deprecated do
map.connect ':controller/:action/:id' AppRoutes.draw do |map|
map.welcome 'welcome', :controller=>"foo", :action=>"bar" map.connect ':controller/:action/:id'
map.welcome 'welcome', :controller=>"foo", :action=>"bar"
end
end end


expected = new_mail expected = new_mail
Expand Down

0 comments on commit 8a09ea6

Please sign in to comment.