diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-29 22:48:11 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-29 22:48:11 +0000 |
commit | a42df5094dd78b883ee346cc8b48945de212aa8d (patch) | |
tree | d14d2643f6e850bff2b40809d4b97018b278866c /test/rdoc | |
parent | 6270b50cf6a2860a4a66bcac3a74af62617eadf7 (diff) | |
download | ruby-a42df5094dd78b883ee346cc8b48945de212aa8d.tar.gz |
Fix some RDoc and RubyGems test interactions. Fix -n in test/runner.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc')
-rw-r--r-- | test/rdoc/test_rdoc_markup_attribute_manager.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_attribute_manager.rb b/test/rdoc/test_rdoc_markup_attribute_manager.rb index eea87822a8..cf10ff9f2f 100644 --- a/test/rdoc/test_rdoc_markup_attribute_manager.rb +++ b/test/rdoc/test_rdoc_markup_attribute_manager.rb @@ -5,6 +5,9 @@ require "rdoc/markup/to_html_crossref" class TestRDocMarkupAttributeManager < Test::Unit::TestCase def setup + @orig_special = RDoc::Markup::AttributeManager::SPECIAL + RDoc::Markup::AttributeManager::SPECIAL.replace Hash.new + @am = RDoc::Markup::AttributeManager.new @bold_on = @am.changed_attribute_by_name([], [:BOLD]) @@ -28,6 +31,10 @@ class TestRDocMarkupAttributeManager < Test::Unit::TestCase @wombat_off = @am.changed_attribute_by_name([:WOMBAT], []) end + def teardown + RDoc::Markup::AttributeManager::SPECIAL.replace @orig_special + end + def crossref(text) crossref_bitmap = RDoc::Markup::Attribute.bitmap_for(:_SPECIAL_) | RDoc::Markup::Attribute.bitmap_for(:CROSSREF) |