aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/shared/length.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-06-27 21:02:36 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-06-27 21:02:36 +0200
commitd80e44deec77678fe2d72f94c17b2409b3e794d5 (patch)
tree612bf2313550e0982dda452f48492cc069e1c21a /spec/ruby/core/string/shared/length.rb
parentc940397116c5aef76b1c0d05561c11d43ef596a7 (diff)
downloadruby-d80e44deec77678fe2d72f94c17b2409b3e794d5.tar.gz
Update to ruby/spec@8d74d49
Diffstat (limited to 'spec/ruby/core/string/shared/length.rb')
-rw-r--r--spec/ruby/core/string/shared/length.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/string/shared/length.rb b/spec/ruby/core/string/shared/length.rb
index cea287d7a2..f387fb251c 100644
--- a/spec/ruby/core/string/shared/length.rb
+++ b/spec/ruby/core/string/shared/length.rb
@@ -21,6 +21,6 @@ describe :string_length, shared: true do
str = 'こにちわ'
str.send(@method)
- str.force_encoding('ASCII-8BIT').send(@method).should == 12
+ str.force_encoding('BINARY').send(@method).should == 12
end
end