Skip to content

Commit e210ead

Browse files
committed
Fix test in a cross-ruby way
1 parent 13f339a commit e210ead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_rdoc_markup_to_html_snippet.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,12 @@ def test_convert_limit_verbatim_multiline
543543
This routine modifies its +comment+ parameter.
544544
RDOC
545545

546+
inner = CGI.escapeHTML "# Don't display comment from this point forward"
546547
expected = <<-EXPECTED
547548
<p>Look for directives in a normal comment block:
548549
549550
<pre># :stopdoc:
550-
# Don&#39;t display comment from this point forward</pre>
551+
#{inner}</pre>
551552
EXPECTED
552553

553554
actual = @to.convert rdoc

0 commit comments

Comments
 (0)