aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/b_spec.rb
diff options
context:
space:
mode:
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