@@ -8,6 +8,7 @@ def setup
88 super
99
1010 @to = RDoc ::Markup ::ToHtmlSnippet . new 100 , 100
11+ @ellipsis = @to . to_html '...'
1112 end
1213
1314 def accept_blank_line
@@ -418,7 +419,7 @@ def test_convert_limit
418419<p>Hello
419420<p>This is some text, it <strong>will</strong> be cut off after 100 characters
420421and an ellipsis must follow
421- <p>So there you ...
422+ <p>So there you #{ @ellipsis }
422423 EXPECTED
423424
424425 actual = @to . convert rdoc
@@ -437,7 +438,7 @@ def test_convert_limit_2
437438
438439 expected = <<-EXPECTED
439440<p>Outputs formatted RI data for the class or method <code>name</code>.
440- <p>Returns true if <code>name</code> was found, false if it was ...
441+ <p>Returns true if <code>name</code> was found, false if it was #{ @ellipsis }
441442 EXPECTED
442443
443444 actual = @to . convert rdoc
@@ -481,7 +482,7 @@ def test_convert_limit_in_tag
481482 @to = RDoc ::Markup ::ToHtmlSnippet . new 4
482483 rdoc = "* ab *c* d\n "
483484
484- expected = "<p>ab <strong>c</strong> ... \n \n "
485+ expected = "<p>ab <strong>c</strong> #{ @ellipsis } \n \n "
485486
486487 actual = @to . convert rdoc
487488
@@ -523,7 +524,7 @@ def test_convert_limit_verbatim_2
523524 expected = <<-EXPECTED
524525<p>Extracts the class, selector and method name parts from <code>name</code>
525526like Foo::Bar#baz.
526- <p>NOTE: Given Foo::Bar, ...
527+ <p>NOTE: Given Foo::Bar, #{ @ellipsis }
527528 EXPECTED
528529
529530 actual = @to . convert rdoc
@@ -561,7 +562,7 @@ def test_convert_limit_over
561562
562563 expected = "<p>text\n "
563564 expected . chomp!
564- expected << " ... \n "
565+ expected << " #{ @ellipsis } \n "
565566
566567 actual = @to . convert rdoc
567568
0 commit comments