summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_comment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc/test_rdoc_comment.rb')
-rw-r--r--test/rdoc/test_rdoc_comment.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rdoc/test_rdoc_comment.rb b/test/rdoc/test_rdoc_comment.rb
index 3b0927212f..567daae51c 100644
--- a/test/rdoc/test_rdoc_comment.rb
+++ b/test/rdoc/test_rdoc_comment.rb
@@ -1,5 +1,5 @@
# coding: us-ascii
-# frozen_string_literal: false
+# frozen_string_literal: true
require 'rdoc/test_case'
@@ -207,7 +207,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
end
def test_force_encoding
- @comment.force_encoding Encoding::UTF_8
+ @comment = RDoc::Encoding.change_encoding @comment, Encoding::UTF_8
assert_equal Encoding::UTF_8, @comment.text.encoding
end
@@ -347,7 +347,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
# this is private
EOS
- comment.force_encoding Encoding::IBM437
+ comment = RDoc::Encoding.change_encoding comment, Encoding::IBM437
comment.remove_private
@@ -471,7 +471,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
# This is text again.
EOS
- comment.force_encoding Encoding::IBM437
+ comment = RDoc::Encoding.change_encoding comment, Encoding::IBM437
comment.remove_private
@@ -486,7 +486,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
# This is text again.
EOS
- comment.force_encoding Encoding::IBM437
+ comment = RDoc::Encoding.change_encoding comment, Encoding::IBM437
comment.remove_private