Skip to content

Commit 00545f3

Browse files
maclover7rafaelfranca
authored andcommitted
Fix ActionView tests
Reverts some of the changes from rails#23242.
1 parent fb7b36e commit 00545f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

actionview/test/template/text_helper_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ def test_simple_format
4444
end
4545

4646
def test_simple_format_should_sanitize_input_when_sanitize_option_is_not_false
47-
assert_equal "<p><b> test with unsafe string </b>code!</p>", simple_format("<b> test with unsafe string </b><script>code!</script>")
47+
assert_equal "<p><b> test with unsafe string </b></p>", simple_format("<b> test with unsafe string </b><script>code!</script>")
4848
end
4949

5050
def test_simple_format_should_sanitize_input_when_sanitize_option_is_true
51-
assert_equal '<p><b> test with unsafe string </b>code!</p>',
51+
assert_equal '<p><b> test with unsafe string </b></p>',
5252
simple_format('<b> test with unsafe string </b><script>code!</script>', {}, sanitize: true)
5353
end
5454

@@ -193,7 +193,7 @@ def test_highlight
193193

194194
def test_highlight_should_sanitize_input
195195
assert_equal(
196-
"This is a <mark>beautiful</mark> morningcode!",
196+
"This is a <mark>beautiful</mark> morning",
197197
highlight("This is a beautiful morning<script>code!</script>", "beautiful")
198198
)
199199
end

0 commit comments

Comments
 (0)