Skip to content

Commit f350f65

Browse files
committed
Fix
1 parent df4bf68 commit f350f65

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/rdoc/generator/darkfish_test.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,8 @@ def test_generate_index_with_main_page
173173
index_html = File.binread('index.html')
174174

175175
assert_include index_html, "<h3>Table of Contents</h3>"
176-
# GitHub-style: heading-1 (lowercase, space to hyphen)
177-
assert_include index_html, '<span id="label-Heading+1" class="legacy-anchor"></span>
178-
<h1 id="heading-1"><a href="#heading-1">Heading 1</a>'
179-
# When there's a main page, the default description should not be shown
176+
assert_include index_html, '<span id="label-Heading+1" class="legacy-anchor"></span>'
177+
assert_include index_html, '<h1 id="heading-1"><a href="#heading-1">Heading 1</a>'
180178
assert_not_include index_html, 'This is the API documentation for My awesome Ruby project.'
181179
end
182180

0 commit comments

Comments
 (0)