Skip to content

Commit d3a8969

Browse files
committed
Fix safe_html spec expectation
1 parent 95a773e commit d3a8969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/helpers/better_together/content_helper_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ module BetterTogether
1313
end
1414

1515
it 'allows permitted markup' do
16-
input = "<p><strong>Bold</strong> and <a href=\"https://example.com\">link</a></p>"
16+
input = '<p><strong>Bold</strong> and <a href="https://example.com">link</a></p>'
1717
output = helper.safe_html(input)
1818
expect(output).to include('<strong>Bold</strong>')
19-
expect(output).to include('<a href=\"https://example.com\">link</a>')
19+
expect(output).to include('<a href="https://example.com">link</a>')
2020
end
2121

2222
it 'allows youtube iframes' do

0 commit comments

Comments
 (0)