mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 02:48:50 +08:00
Apply notification styles to mailing list email manually (#4283)
* Apply notification styles to mailing list email manually * Fix failing spec
This commit is contained in:

committed by
Arpit Jalan

parent
0ed4d3d313
commit
7a6bc3f1d7
@ -318,7 +318,7 @@ HTML
|
||||
it "adds base url to relative links" do
|
||||
html = "<p><a class=\"mention\" href=\"/users/wiseguy\">@wiseguy</a>, <a class=\"mention\" href=\"/users/trollol\">@trollol</a> what do you guys think? </p>"
|
||||
output = described_class.format_for_email(html, post)
|
||||
expect(output).to eq("<p><a href=\"#{base_url}/users/wiseguy\">@wiseguy</a>, <a href=\"#{base_url}/users/trollol\">@trollol</a> what do you guys think? </p>")
|
||||
expect(output).to eq("<p><a class=\"mention\" href=\"#{base_url}/users/wiseguy\">@wiseguy</a>, <a class=\"mention\" href=\"#{base_url}/users/trollol\">@trollol</a> what do you guys think? </p>")
|
||||
end
|
||||
|
||||
it "doesn't change external absolute links" do
|
||||
|
Reference in New Issue
Block a user