aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc/test_rdoc_options.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-07 22:23:38 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-07 22:23:38 +0000
commitba6ae341bab83dfc7a624c5bf20d8d162dacaff9 (patch)
tree540581a54cefcdc817577f646f09372f7e9936d1 /test/rdoc/test_rdoc_options.rb
parentbf51c067b92361007a57909c539591d3d00cdbd8 (diff)
downloadruby-ba6ae341bab83dfc7a624c5bf20d8d162dacaff9.tar.gz
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta2
Fixed ri parse defect with left-hand matched classes. https://github.com/rdoc/rdoc/pull/420 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_options.rb')
-rw-r--r--test/rdoc/test_rdoc_options.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb
index 5d79432f94..eef37b44b4 100644
--- a/test/rdoc/test_rdoc_options.rb
+++ b/test/rdoc/test_rdoc_options.rb
@@ -60,7 +60,7 @@ class TestRDocOptions < RDoc::TestCase
@options.encode_with coder
- encoding = Object.const_defined?(:Encoding) ? 'UTF-8' : nil
+ encoding = 'UTF-8'
expected = {
'charset' => 'UTF-8',
@@ -122,8 +122,6 @@ class TestRDocOptions < RDoc::TestCase
end
def test_encoding_default
- skip "Encoding not implemented" unless Object.const_defined? :Encoding
-
assert_equal Encoding::UTF_8, @options.encoding
end
@@ -142,7 +140,6 @@ class TestRDocOptions < RDoc::TestCase
end
def test_init_with_encoding
- skip "Encoding not implemented" unless Object.const_defined? :Encoding
RDoc.load_yaml
@options.encoding = Encoding::IBM437
@@ -273,8 +270,6 @@ rdoc_include:
end
def test_parse_encoding
- skip "Encoding not implemented" unless Object.const_defined? :Encoding
-
@options.parse %w[--encoding Big5]
assert_equal Encoding::Big5, @options.encoding
@@ -282,8 +277,6 @@ rdoc_include:
end
def test_parse_encoding_invalid
- skip "Encoding not implemented" unless Object.const_defined? :Encoding
-
out, err = capture_io do
@options.parse %w[--encoding invalid]
end
@@ -764,4 +757,3 @@ rdoc_include:
assert_equal :private, @options.visibility
end
end
-