Skip to content

Commit 812ab49

Browse files
committed
Improve test name
We are really testing behavior for unknown file parsers here.
1 parent e28961f commit 812ab49

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

test/test_rdoc_parser.rb

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -231,17 +231,6 @@ def test_class_use_markup
231231
assert_equal @RP::RD, parser
232232
end
233233

234-
def test_class_use_markup_rdoc
235-
content = <<-CONTENT
236-
# :markup: RDoc
237-
CONTENT
238-
239-
parser = @RP.use_markup content
240-
241-
assert_nil parser
242-
end
243-
244-
245234
def test_class_use_markup_markdown
246235
content = <<-CONTENT
247236
# coding: utf-8 markup: markdown
@@ -303,6 +292,16 @@ def test_class_use_markup_none
303292
assert_nil parser
304293
end
305294

295+
def test_class_use_markup_unknown
296+
content = <<-CONTENT
297+
# :markup: RDoc
298+
CONTENT
299+
300+
parser = @RP.use_markup content
301+
302+
assert_nil parser
303+
end
304+
306305
def test_initialize
307306
@RP.new @top_level, @fn, '', @options, nil
308307

0 commit comments

Comments
 (0)