diff options
Diffstat (limited to 'spec/ruby/core/string/force_encoding_spec.rb')
-rw-r--r-- | spec/ruby/core/string/force_encoding_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/core/string/force_encoding_spec.rb b/spec/ruby/core/string/force_encoding_spec.rb index 2fe5f79c0f..2259dcf3cf 100644 --- a/spec/ruby/core/string/force_encoding_spec.rb +++ b/spec/ruby/core/string/force_encoding_spec.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative '../../spec_helper' describe "String#force_encoding" do @@ -60,7 +61,7 @@ describe "String#force_encoding" do end it "does not transcode self" do - str = "\u{8612}" + str = "é" str.dup.force_encoding('utf-16le').should_not == str.encode('utf-16le') end |