diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-27 04:28:14 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-27 04:28:14 +0000 |
commit | 1c279a7d2753949c725754e1302f791b76358114 (patch) | |
tree | 36aa3bdde250e564445eba5f2e25fcb96bcb6cef /test/rdoc/test_rdoc_markup.rb | |
parent | c72f0daa877808e4fa5018b3191ca09d4b97c03d (diff) |
* lib/rdoc*: Updated to RDoc 4.0 (pre-release)
* bin/rdoc: ditto
* test/rdoc: ditto
* NEWS: Updated with RDoc 4.0 information
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_markup.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/rdoc/test_rdoc_markup.rb b/test/rdoc/test_rdoc_markup.rb index ae6c11e7da..5c28a2c6e6 100644 --- a/test/rdoc/test_rdoc_markup.rb +++ b/test/rdoc/test_rdoc_markup.rb @@ -1,9 +1,13 @@ -require 'rubygems' -require 'minitest/autorun' -require 'rdoc/markup' -require 'rdoc/markup/to_test' +require 'rdoc/test_case' -class TestRDocMarkup < MiniTest::Unit::TestCase +class TestRDocMarkup < RDoc::TestCase + + def test_class_parse + expected = @RM::Document.new( + @RM::Paragraph.new('hello')) + + assert_equal expected, RDoc::Markup.parse('hello') + end def test_convert str = <<-STR @@ -44,7 +48,7 @@ the time m = RDoc::Markup.new m.add_word_pair '{', '}', :STRIKE - tt = RDoc::Markup::ToTest.new m + tt = RDoc::Markup::ToTest.new nil, m tt.add_tag :STRIKE, 'STRIKE ', ' STRIKE' out = m.convert str, tt |