diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-27 03:45:22 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-27 03:45:22 +0000 |
commit | 336a8301f725bd8fbf5f1e0c4fee162382a76d0f (patch) | |
tree | 455c5fb8689d09e734a9ca13cdbe3ef9a7651a6e /test/rdoc/test_rdoc_markup_raw.rb | |
parent | 3a87c3c5603fce8449f78faccaff5f4be6f372e1 (diff) | |
download | ruby-336a8301f725bd8fbf5f1e0c4fee162382a76d0f.tar.gz |
Import RDoc 2.5.7. Fixes #1318 and ruby-core:29780
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_markup_raw.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_raw.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_raw.rb b/test/rdoc/test_rdoc_markup_raw.rb new file mode 100644 index 0000000000..4e57b7df39 --- /dev/null +++ b/test/rdoc/test_rdoc_markup_raw.rb @@ -0,0 +1,27 @@ +require 'pp' +require 'rubygems' +require 'minitest/autorun' +require 'rdoc/markup' + +class TestRDocMarkupRaw < MiniTest::Unit::TestCase + + def setup + @RM = RDoc::Markup + @p = @RM::Raw.new + end + + def mu_pp obj + s = '' + s = PP.pp obj, s + s.force_encoding Encoding.default_external if defined? Encoding + s.chomp + end + + def test_push + @p.push 'hi', 'there' + + assert_equal @RM::Raw.new('hi', 'there'), @p + end + +end + |