Skip to content

Commit d865eb7

Browse files
authored
Fix safe_html spec expectation (#1015)
## Summary - Correct ContentHelper spec to expect unescaped anchor tag attributes in safe_html ## Testing - `bin/ci` *(fails: bundler: command not found: rails)* - `bundle exec rubocop` *(fails: bundler: command not found: rubocop)* - `bundle exec brakeman -q -w2` *(fails: bundler: command not found: brakeman)* - `bundle exec bundler-audit --update` *(fails: bundler: command not found: bundler-audit)* - `bin/codex_style_guard` *(fails: bundler: command not found: rubocop)* ------ https://chatgpt.com/codex/tasks/task_e_689b7397cf9083219a36487ec4f9b6dd
2 parents 95a773e + d3a8969 commit d865eb7

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)