mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
prefer empty href attribute to #
This commit is contained in:
@ -66,12 +66,12 @@ describe Email::Styles do
|
||||
end
|
||||
|
||||
it "attaches a style to a tags" do
|
||||
frag = html_fragment("<a href='#'>wat</a>")
|
||||
frag = html_fragment("<a href>wat</a>")
|
||||
expect(frag.at('a')['style']).to be_present
|
||||
end
|
||||
|
||||
it "attaches a style to a tags" do
|
||||
frag = html_fragment("<a href='#'>wat</a>")
|
||||
frag = html_fragment("<a href>wat</a>")
|
||||
expect(frag.at('a')['style']).to be_present
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user