Namespace
Methods
A
T
W
Constants
Routes = ActionDispatch::Routing::RouteSet.new
 
APP = RoutedRackApp.new(Routes)
 
Instance Public methods
app()
# File actionmailer/test/i18n_with_controller_test.rb, line 46
def app
  APP
end
test_send_mail()
# File actionmailer/test/i18n_with_controller_test.rb, line 54
def test_send_mail
  Mail::SMTP.any_instance.expects(:deliver!)
  with_translation 'de', email_subject: '[Anmeldung] Willkommen' do
    get '/test/send_mail'
    assert_equal "Mail sent - Subject: [Anmeldung] Willkommen", @response.body
  end
end
Instance Protected methods
with_translation(locale, data)
# File actionmailer/test/i18n_with_controller_test.rb, line 64
def with_translation(locale, data)
  I18n.backend.store_translations(locale, data)
  yield
ensure
  I18n.backend.reload!
end