mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 06:51:27 +08:00
fix the build
This commit is contained in:
@ -64,4 +64,12 @@ module Helpers
|
||||
expect(result).to eq(true)
|
||||
end
|
||||
|
||||
def fill_email(mail, from, to, body = nil, subject = nil, cc = nil)
|
||||
result = mail.gsub("FROM", from).gsub("TO", to)
|
||||
result.gsub!(/Hey.*/m, body) if body
|
||||
result.sub!(/We .*/, subject) if subject
|
||||
result.sub!("CC", cc.presence || "")
|
||||
result
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user