diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-27 10:45:24 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-27 10:45:24 +0000 |
commit | 55518710865bd7258422807524403c91347519a2 (patch) | |
tree | 4146c423ab0c55ed35d9d860e64d7e3a7e2a9efb /test/rdoc/test_rdoc_code_object.rb | |
parent | 2d9f20e1cfdc7532a8acef4da9b8b7a788c4e99a (diff) | |
download | ruby-55518710865bd7258422807524403c91347519a2.tar.gz |
Merge rdoc-6.0.0.beta4 from upstream.
It version applied `frozen_string_literal: true`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_code_object.rb')
-rw-r--r-- | test/rdoc/test_rdoc_code_object.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rdoc/test_rdoc_code_object.rb b/test/rdoc/test_rdoc_code_object.rb index be4ca268e4..d189ac1c4b 100644 --- a/test/rdoc/test_rdoc_code_object.rb +++ b/test/rdoc/test_rdoc_code_object.rb @@ -1,5 +1,5 @@ # coding: US-ASCII -# frozen_string_literal: false +# frozen_string_literal: true require File.expand_path '../xref_test_case', __FILE__ @@ -53,7 +53,7 @@ class TestRDocCodeObject < XrefTestCase refute_equal Encoding::UTF_8, ''.encoding, 'Encoding sanity check' input = 'text' - input.force_encoding Encoding::UTF_8 + input = RDoc::Encoding.change_encoding input, Encoding::UTF_8 @co.comment = input @@ -65,7 +65,7 @@ class TestRDocCodeObject < XrefTestCase refute_equal Encoding::UTF_8, ''.encoding, 'Encoding sanity check' input = '' - input.force_encoding Encoding::UTF_8 + input = RDoc::Encoding.change_encoding input, Encoding::UTF_8 @co.comment = input |