aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/b_spec.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/b_spec.rb
parentc940397116c5aef76b1c0d05561c11d43ef596a7 (diff)
downloadruby-d80e44deec77678fe2d72f94c17b2409b3e794d5.tar.gz
Update to ruby/spec@8d74d49
Diffstat (limited to 'spec/ruby/core/string/b_spec.rb')
-rw-r--r--spec/ruby/core/string/b_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/string/b_spec.rb b/spec/ruby/core/string/b_spec.rb
index 638971f9ce..8555dd8dc7 100644
--- a/spec/ruby/core/string/b_spec.rb
+++ b/spec/ruby/core/string/b_spec.rb
@@ -2,9 +2,9 @@
require_relative '../../spec_helper'
describe "String#b" do
- it "returns an ASCII-8BIT encoded string" do
- "Hello".b.should == "Hello".force_encoding(Encoding::ASCII_8BIT)
- "こんちには".b.should == "こんちには".force_encoding(Encoding::ASCII_8BIT)
+ it "returns an BINARY encoded string" do
+ "Hello".b.should == "Hello".force_encoding(Encoding::BINARY)
+ "こんちには".b.should == "こんちには".force_encoding(Encoding::BINARY)
end
it "returns new string without modifying self" do