mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
Fix failing specs.
This commit is contained in:
parent
b5ec241716
commit
cae09ee4c8
@ -537,7 +537,16 @@ describe UserNotifications do
|
||||
end
|
||||
|
||||
context "when customized" do
|
||||
let(:custom_body) { "You are now officially notified." }
|
||||
let(:custom_body) do
|
||||
body = <<~BODY
|
||||
You are now officially notified.
|
||||
%{header_instructions}
|
||||
%{message} %{respond_instructions}
|
||||
BODY
|
||||
|
||||
body << "%{context}" if notification_type != :invited_to_topic
|
||||
body
|
||||
end
|
||||
|
||||
before do
|
||||
TranslationOverride.upsert!("en", "user_notifications.user_#{notification_type}.text_body_template", custom_body)
|
||||
|
Loading…
Reference in New Issue
Block a user