Restore test deliveries properly in ActionMailer.
Restore test deliveries properly in ActionMailer.

`ActionMailer::Base.delivery_method` and
`ActionMailer::Base.perform_deliveries` have leaked states.

"delivery method can be customized per instance" and "delivery method
can be customized in subclasses not changing the parent" in
delivery_methods_test.rb will fail if test_helper_test.rb (in which
TestHelperMailerTest is inherited from ActionMailer::TestCase) runs
before it.

baerjam/rails,baerjam/rails,rails/rails,mohitnatoo/rails,yawboakye/rails,Sen-Zhang/rails,yhirano55/rails,yahonda/rails,utilum/rails,hanystudy/rails,illacceptanything/illacceptanything,hanystudy/rails,yhirano55/rails,brchristian/rails,starknx/rails,ngpestelos/rails,repinel/rails,arunagw/rails,pschambacher/rails,mechanicles/rails,mohitnatoo/rails,stefanmb/rails,starknx/rails,maicher/rails,pschambacher/rails,felipecvo/rails,lcreid/rails,amoody2108/TechForJustice,sergey-alekseev/rails,schuetzm/rails,hanystudy/rails,mechanicles/rails,pvalena/rails,coreyward/rails,tijwelch/rails,starknx/rails,kamipo/rails,gfvcastro/rails,Sen-Zhang/rails,utilum/rails,matrinox/rails,illacceptanything/illacceptanything,yhirano55/rails,gauravtiwari/rails,travisofthenorth/rails,gcourtemanche/rails,tijwelch/rails,joonyou/rails,betesh/rails,bogdanvlviv/rails,ledestin/rails,Spin42/rails,gauravtiwari/rails,kamipo/rails,bradleypriest/rails,rails/rails,alecspopa/rails,baerjam/rails,yalab/rails,pvalena/rails,untidy-hair/rails,rafaelfranca/omg-rails,ledestin/rails,ttanimichi/rails,ngpestelos/rails,illacceptanything/illacceptanything,MSP-Greg/rails,lucasmazza/rails,tjschuck/rails,riseshia/railsguides.kr,gauravtiwari/rails,shioyama/rails,EmmaB/rails-1,riseshia/railsguides.kr,amoody2108/TechForJustice,flanger001/rails,88rabbit/newRails,mohitnatoo/rails,georgeclaghorn/rails,gfvcastro/rails,deraru/rails,EmmaB/rails-1,joonyou/rails,kmayer/rails,illacceptanything/illacceptanything,Stellenticket/rails,eileencodes/rails,kddeisz/rails,georgeclaghorn/rails,Spin42/rails,MichaelSp/rails,kenta-s/rails,deraru/rails,riseshia/railsguides.kr,shioyama/rails,yawboakye/rails,rbhitchcock/rails,lcreid/rails,eileencodes/rails,mathieujobin/reduced-rails-for-travis,untidy-hair/rails,richseviora/rails,sealocal/rails,yasslab/railsguides.jp,samphilipd/rails,alecspopa/rails,mijoharas/rails,mijoharas/rails,schuetzm/rails,ledestin/rails,pvalena/rails,aditya-kapoor/rails,Envek/rails,kaspth/rails,yahonda/rails,utilum/rails,illacceptanything/illacceptanything,esparta/rails,illacceptanything/illacceptanything,kmcphillips/rails,xlymian/rails,repinel/rails,printercu/rails,kenta-s/rails,maicher/rails,jeremy/rails,sergey-alekseev/rails,elfassy/rails,rafaelfranca/omg-rails,fabianoleittes/rails,yhirano55/rails,yahonda/rails,bolek/rails,vipulnsward/rails,kirs/rails-1,rafaelfranca/omg-rails,tgxworld/rails,yalab/rails,sealocal/rails,illacceptanything/illacceptanything,brchristian/rails,fabianoleittes/rails,Vasfed/rails,mathieujobin/reduced-rails-for-travis,fabianoleittes/rails,Edouard-chin/rails,tjschuck/rails,yalab/rails,arunagw/rails,notapatch/rails,BlakeWilliams/rails,stefanmb/rails,georgeclaghorn/rails,ttanimichi/rails,mtsmfm/railstest,voray/rails,prathamesh-sonpatki/rails,vipulnsward/rails,sergey-alekseev/rails,betesh/rails,gcourtemanche/rails,tgxworld/rails,assain/rails,palkan/rails,brchristian/rails,palkan/rails,mijoharas/rails,tgxworld/rails,mohitnatoo/rails,samphilipd/rails,Stellenticket/rails,kachick/rails,Vasfed/rails,Edouard-chin/rails,illacceptanything/illacceptanything,Erol/rails,iainbeeston/rails,kirs/rails-1,richseviora/rails,jeremy/rails,aditya-kapoor/rails,gcourtemanche/rails,baerjam/rails,printercu/rails,marklocklear/rails,gfvcastro/rails,vipulnsward/rails,iainbeeston/rails,kaspth/rails,illacceptanything/illacceptanything,kenta-s/rails,kddeisz/rails,felipecvo/rails,tjschuck/rails,repinel/rails,bradleypriest/rails,mtsmfm/railstest,yawboakye/rails,Envek/rails,rails/rails,rbhitchcock/rails,Erol/rails,vassilevsky/rails,matrinox/rails,arjes/rails,gfvcastro/rails,ngpestelos/rails,EmmaB/rails-1,richseviora/rails,printercu/rails,BlakeWilliams/rails,Erol/rails,lcreid/rails,jeremy/rails,matrinox/rails,mtsmfm/railstest,koic/rails,fabianoleittes/rails,vipulnsward/rails,vassilevsky/rails,mtsmfm/rails,illacceptanything/illacceptanything,kirs/rails-1,vassilevsky/rails,yahonda/rails,georgeclaghorn/rails,shioyama/rails,schuetzm/rails,arjes/rails,88rabbit/newRails,yasslab/railsguides.jp,assain/rails,mechanicles/rails,pvalena/rails,palkan/rails,riseshia/railsguides.kr,odedniv/rails,travisofthenorth/rails,notapatch/rails,sealocal/rails,arunagw/rails,arunagw/rails,voray/rails,MSP-Greg/rails,lcreid/rails,elfassy/rails,xlymian/rails,iainbeeston/rails,kmayer/rails,gavingmiller/rails,aditya-kapoor/rails,notapatch/rails,bogdanvlviv/rails,kmcphillips/rails,felipecvo/rails,marklocklear/rails,tjschuck/rails,lucasmazza/rails,odedniv/rails,kaspth/rails,tgxworld/rails,rbhitchcock/rails,kachick/rails,kddeisz/rails,joonyou/rails,gavingmiller/rails,Erol/rails,eileencodes/rails,arjes/rails,Edouard-chin/rails,Edouard-chin/rails,betesh/rails,maicher/rails,illacceptanything/illacceptanything,esparta/rails,bogdanvlviv/rails,Stellenticket/rails,Sen-Zhang/rails,xlymian/rails,travisofthenorth/rails,yasslab/railsguides.jp,alecspopa/rails,tijwelch/rails,samphilipd/rails,koic/rails,Envek/rails,yawboakye/rails,prathamesh-sonpatki/rails,MichaelSp/rails,rails/rails,rossta/rails,palkan/rails,repinel/rails,lucasmazza/rails,coreyward/rails,yalab/rails,flanger001/rails,travisofthenorth/rails,ttanimichi/rails,Spin42/rails,illacceptanything/illacceptanything,rossta/rails,prathamesh-sonpatki/rails,Vasfed/rails,amoody2108/TechForJustice,assain/rails,bolek/rails,betesh/rails,jeremy/rails,iainbeeston/rails,mtsmfm/rails,MichaelSp/rails,Envek/rails,eileencodes/rails,bolek/rails,deraru/rails,utilum/rails,yasslab/railsguides.jp,marklocklear/rails,illacceptanything/illacceptanything,kamipo/rails,mechanicles/rails,illacceptanything/illacceptanything,bogdanvlviv/rails,assain/rails,coreyward/rails,esparta/rails,flanger001/rails,untidy-hair/rails,koic/rails,stefanmb/rails,elfassy/rails,mathieujobin/reduced-rails-for-travis,prathamesh-sonpatki/rails,kmcphillips/rails,joonyou/rails,pschambacher/rails,notapatch/rails,esparta/rails,kmayer/rails,BlakeWilliams/rails,printercu/rails,Vasfed/rails,MSP-Greg/rails,kachick/rails,88rabbit/newRails,rossta/rails,aditya-kapoor/rails,kmcphillips/rails,odedniv/rails,untidy-hair/rails,gavingmiller/rails,flanger001/rails,voray/rails,shioyama/rails,MSP-Greg/rails,illacceptanything/illacceptanything,deraru/rails,BlakeWilliams/rails,mtsmfm/rails,Stellenticket/rails,bradleypriest/rails,kddeisz/rails,schuetzm/rails