1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-06 07:31:31 +00:00

code cleanup: rubocop: fix Layout/EmptyLineBetweenDefs in test/unit/mailer_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18673 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-15 05:07:06 +00:00
parent 36e0d3273d
commit 6a3d42dd69
2 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,6 @@ Layout/EmptyLineAfterGuardClause:
Layout/EmptyLineBetweenDefs:
Exclude:
- 'app/models/version.rb'
- 'test/unit/mailer_test.rb'
- 'test/unit/project_test.rb'
# Cop supports --auto-correct.

View File

@ -266,6 +266,7 @@ class MailerTest < ActiveSupport::TestCase
assert_match /<redmine@example\.net>/, mail.from_addrs.first
assert_equal '[Redmine app] <redmine@example.net>', mail.header['From'].to_s
end
def test_from_header_with_author_name
# Use the author's name or Setting.app_title as a display name
# when Setting.mail_from does not include a display name