1
0
Fork 0
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:
Santiago Pastorino 2010-07-03 21:12:49 -03:00 committed by Jeremy Kemper
parent 7f7480f6fc
commit 8a09ea6d6d

View file

@ -28,7 +28,7 @@ class UrlTestMailer < ActionMailer::Base
end
end
class ActionMailerUrlTest < Test::Unit::TestCase
class ActionMailerUrlTest < ActionMailer::TestCase
def encode( text, charset="UTF-8" )
quoted_printable( text, charset )
@ -58,10 +58,12 @@ class ActionMailerUrlTest < Test::Unit::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
end
expected = new_mail
expected.to = @recipient