Skip to content

Commit 63dd2bd

Browse files
committed
fix test?
1 parent 3dade77 commit 63dd2bd

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

test/rdoc/test_rdoc_markup_to_html.rb

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,53 +24,46 @@ def accept_document
2424
end
2525

2626
def accept_heading
27-
links = '<span><a href="#label-Hello">&para;</a> ' +
28-
'<a href="#top">&uarr;</a></span>'
27+
links = '<span><a href="#label-Hello">&para;</a></span>'
2928
expected = "\n<h5 id=\"label-Hello\">Hello#{links}</h5>\n"
3029

3130
assert_equal expected, @to.res.join
3231
end
3332

3433
def accept_heading_1
35-
links = '<span><a href="#label-Hello">&para;</a> ' +
36-
'<a href="#top">&uarr;</a></span>'
34+
links = '<span><a href="#label-Hello">&para;</a></span>'
3735

3836
assert_equal "\n<h1 id=\"label-Hello\">Hello#{links}</h1>\n", @to.res.join
3937
end
4038

4139
def accept_heading_2
42-
links = '<span><a href="#label-Hello">&para;</a> ' +
43-
'<a href="#top">&uarr;</a></span>'
40+
links = '<span><a href="#label-Hello">&para;</a></span>'
4441

4542
assert_equal "\n<h2 id=\"label-Hello\">Hello#{links}</h2>\n", @to.res.join
4643
end
4744

4845
def accept_heading_3
49-
links = '<span><a href="#label-Hello">&para;</a> ' +
50-
'<a href="#top">&uarr;</a></span>'
46+
links = '<span><a href="#label-Hello">&para;</a></span>'
5147

5248
assert_equal "\n<h3 id=\"label-Hello\">Hello#{links}</h3>\n", @to.res.join
5349
end
5450

5551
def accept_heading_4
56-
links = '<span><a href="#label-Hello">&para;</a> ' +
57-
'<a href="#top">&uarr;</a></span>'
52+
links = '<span><a href="#label-Hello">&para;</a></span>'
5853

5954
assert_equal "\n<h4 id=\"label-Hello\">Hello#{links}</h4>\n", @to.res.join
6055
end
6156

6257
def accept_heading_b
63-
links = '<span><a href="#label-Hello">&para;</a> ' +
64-
'<a href="#top">&uarr;</a></span>'
58+
links = '<span><a href="#label-Hello">&para;</a></span>'
6559
inner = "<strong>Hello</strong>"
6660

6761
assert_equal "\n<h1 id=\"label-Hello\">#{inner}#{links}</h1>\n",
6862
@to.res.join
6963
end
7064

7165
def accept_heading_suppressed_crossref
72-
links = '<span><a href="#label-Hello">&para;</a> ' +
73-
'<a href="#top">&uarr;</a></span>'
66+
links = '<span><a href="#label-Hello">&para;</a></span>'
7467

7568
assert_equal "\n<h1 id=\"label-Hello\">Hello#{links}</h1>\n", @to.res.join
7669
end
@@ -348,8 +341,7 @@ def test_accept_heading_7
348341

349342
@to.accept_heading @RM::Heading.new(7, 'Hello')
350343

351-
links = '<span><a href="#label-Hello">&para;</a> ' +
352-
'<a href="#top">&uarr;</a></span>'
344+
links = '<span><a href="#label-Hello">&para;</a></span>'
353345

354346
assert_equal "\n<h6 id=\"label-Hello\">Hello#{links}</h6>\n", @to.res.join
355347
end
@@ -360,8 +352,7 @@ def test_accept_heading_aref_class
360352

361353
@to.accept_heading head(1, 'Hello')
362354

363-
links = '<span><a href="#class-Foo-label-Hello">&para;</a> ' +
364-
'<a href="#top">&uarr;</a></span>'
355+
links = '<span><a href="#class-Foo-label-Hello">&para;</a></span>'
365356

366357
assert_equal "\n<h1 id=\"class-Foo-label-Hello\">Hello#{links}</h1>\n",
367358
@to.res.join
@@ -373,8 +364,7 @@ def test_accept_heading_aref_method
373364

374365
@to.accept_heading @RM::Heading.new(1, 'Hello')
375366

376-
links = '<span><a href="#method-i-foo-label-Hello">&para;</a> ' +
377-
'<a href="#top">&uarr;</a></span>'
367+
links = '<span><a href="#method-i-foo-label-Hello">&para;</a>'
378368

379369
assert_equal "\n<h1 id=\"method-i-foo-label-Hello\">Hello#{links}</h1>\n",
380370
@to.res.join
@@ -437,7 +427,7 @@ def test_accept_heading_output_decoration
437427

438428
@to.accept_heading @RM::Heading.new(1, 'Hello')
439429

440-
assert_equal "\n<h1>Hello<span><a href=\"#label-Hello\">&para;</a> <a href=\"#top\">&uarr;</a></span></h1>\n", @to.res.join
430+
assert_equal "\n<h1>Hello<span><a href=\"#label-Hello\">&para;</a></span></h1>\n", @to.res.join
441431
end
442432

443433
def test_accept_heading_output_decoration_with_pipe

0 commit comments

Comments
 (0)