From 55518710865bd7258422807524403c91347519a2 Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 27 Nov 2017 10:45:24 +0000 Subject: 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 --- test/rdoc/test_rdoc_comment.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/rdoc/test_rdoc_comment.rb') 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 -- cgit v1.2.3