Skip to content

Commit 5a4f931

Browse files
committed
Fix test, fileinfo template no longer exists
Remove unused assignment in RDoc context tests
1 parent 7d2d7c2 commit 5a4f931

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

test/test_rdoc_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def test_section_contents_unused
709709
@context = RDoc::Context.new
710710

711711
@context.add_method RDoc::AnyMethod.new(nil, 'm')
712-
b = @context.add_section 'B'
712+
@context.add_section 'B'
713713

714714
assert_empty @context.section_contents
715715
end

test/test_rdoc_generator_darkfish.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def test_generate
7272

7373
assert_file 'index.html'
7474
assert_file 'Object.html'
75-
assert_file 'file_rb.html'
7675
assert_file 'table_of_contents.html'
7776
assert_file 'js/search_index.js'
7877

@@ -86,8 +85,6 @@ def test_generate
8685
File.read('index.html'))
8786
assert_match(/<meta content="text\/html; charset=#{encoding}"/,
8887
File.read('Object.html'))
89-
assert_match(/<meta content="text\/html; charset=#{encoding}"/,
90-
File.read('file_rb.html'))
9188

9289
refute_match(/Ignored/, File.read('index.html'))
9390
end
@@ -101,7 +98,6 @@ def test_generate_dry_run
10198

10299
refute_file 'index.html'
103100
refute_file 'Object.html'
104-
refute_file 'file_rb.html'
105101
end
106102

107103
def test_generate_static

0 commit comments

Comments
 (0)