mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Avoids deprecation warning running tests
This commit is contained in:
parent
7f7480f6fc
commit
8a09ea6d6d
1 changed files with 7 additions and 5 deletions
|
@ -28,7 +28,7 @@ class UrlTestMailer < ActionMailer::Base
|
||||||
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 )
|
||||||
|
@ -58,10 +58,12 @@ class ActionMailerUrlTest < Test::Unit::TestCase
|
||||||
def test_signed_up_with_url
|
def test_signed_up_with_url
|
||||||
UrlTestMailer.delivery_method = :test
|
UrlTestMailer.delivery_method = :test
|
||||||
|
|
||||||
|
assert_deprecated do
|
||||||
AppRoutes.draw do |map|
|
AppRoutes.draw do |map|
|
||||||
map.connect ':controller/:action/:id'
|
map.connect ':controller/:action/:id'
|
||||||
map.welcome 'welcome', :controller=>"foo", :action=>"bar"
|
map.welcome 'welcome', :controller=>"foo", :action=>"bar"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
expected = new_mail
|
expected = new_mail
|
||||||
expected.to = @recipient
|
expected.to = @recipient
|
||||||
|
|
Loading…
Reference in a new issue