mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
And add tests for empty string & null
This commit is contained in:
parent
4e04c4dddd
commit
b0dbb0ea13
3 changed files with 10 additions and 2 deletions
|
@ -84,6 +84,14 @@ describe Email::MessageBuilder do
|
|||
expect(Email::MessageBuilder.custom_headers(custom_headers_string)).to eq(custom_headers_result)
|
||||
end
|
||||
|
||||
it "empty headers builder" do
|
||||
expect(Email::MessageBuilder.custom_headers("")).to eq({})
|
||||
end
|
||||
|
||||
it "null headers builder" do
|
||||
expect(Email::MessageBuilder.custom_headers(nil)).to eq({})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "header args" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue