mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
FIX: use email_site_title for emails like reset password and account activation too
This commit is contained in:
@ -242,6 +242,11 @@ describe Email::MessageBuilder do
|
||||
expect(custom_aliased_from.build_args[:from]).to eq("Finn the Dog <#{finn_email}>")
|
||||
end
|
||||
|
||||
it "email_site_title will be added if it's set" do
|
||||
SiteSetting.stubs(:email_site_title).returns("The Forum")
|
||||
expect(build_args[:from]).to eq("The Forum <#{SiteSetting.notification_email}>")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user