mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:37:44 +08:00
FIX: fail to send email notification if post has img tag with no src attribute
This commit is contained in:
@ -173,6 +173,13 @@ describe Email::Styles do
|
||||
style.strip_avatars_and_emojis
|
||||
expect(style.to_html).to match_html("cry_cry")
|
||||
end
|
||||
|
||||
it "works if img tag has no attrs" do
|
||||
cooked = "Create a method for click on image and use ng-click in <img> in your slide box...it is simple"
|
||||
style = Email::Styles.new(cooked)
|
||||
style.strip_avatars_and_emojis
|
||||
expect(style.to_html).to eq(cooked)
|
||||
end
|
||||
end
|
||||
|
||||
context "onebox_styles" do
|
||||
|
Reference in New Issue
Block a user