prefer empty href attribute to #

This commit is contained in:
Régis Hanol
2015-09-08 18:27:20 +02:00
parent c0136eb6e6
commit e3a80936c8
15 changed files with 21 additions and 21 deletions

View File

@ -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