summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_markup_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc/test_rdoc_markup_parser.rb')
-rw-r--r--test/rdoc/test_rdoc_markup_parser.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_parser.rb b/test/rdoc/test_rdoc_markup_parser.rb
index a7951d9d01..98c16a18ef 100644
--- a/test/rdoc/test_rdoc_markup_parser.rb
+++ b/test/rdoc/test_rdoc_markup_parser.rb
@@ -625,6 +625,25 @@ for all good men
assert_equal expected, @RMP.parse(str).parts
end
+ def test_parse_rule
+ str = <<-STR
+now is the time
+
+---
+
+for all good men
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is the time'),
+ @RM::BlankLine.new,
+ @RM::Rule.new(1),
+ @RM::BlankLine.new,
+ @RM::Paragraph.new('for all good men')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
def test_parse_ualpha
str = <<-STR
A. l1