Privatize unneededly protected methods in Action Mailer tests

This commit is contained in:
Akira Matsuda 2016-12-23 23:41:41 +09:00
parent f2dfd5c6fd
commit 8e1da1188f
3 changed files with 3 additions and 3 deletions

View File

@ -829,7 +829,7 @@ class BaseTest < ActiveSupport::TestCase
assert_equal "special indeed!", mail["X-Special-Header"].to_s
end
protected
private
# Execute the block setting the given values and restoring old values after
# the block is executed.

View File

@ -66,7 +66,7 @@ class ActionMailerI18nWithControllerTest < ActionDispatch::IntegrationTest
end
end
protected
private
def with_translation(locale, data)
I18n.backend.store_translations(locale, data)

View File

@ -65,7 +65,7 @@ The second
end
end
protected
private
def mail_with_defaults(&block)
mail(to: "test@localhost", from: "tester@example.com",