Namespace
Methods
Constants
| Routes | = | ActionDispatch::Routing::RouteSet.new |
| APP | = | RoutedRackApp.new(Routes) |
Instance Public methods
app()
Link
test_send_mail()
Link
# File actionmailer/test/i18n_with_controller_test.rb, line 56 def test_send_mail stub_any_instance(Mail::SMTP, instance: Mail::SMTP.new({})) do |instance| assert_called(instance, :deliver!) do with_translation 'de', email_subject: '[Anmeldung] Willkommen' do ActiveSupport::Deprecation.silence do get '/test/send_mail' end assert_equal "Mail sent - Subject: [Anmeldung] Willkommen", @response.body end end end end
Instance Protected methods