diff options
Diffstat (limited to 'spec/ruby/core/string/force_encoding_spec.rb')
-rw-r--r-- | spec/ruby/core/string/force_encoding_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/string/force_encoding_spec.rb b/spec/ruby/core/string/force_encoding_spec.rb index 83641a37b4..7a5503de56 100644 --- a/spec/ruby/core/string/force_encoding_spec.rb +++ b/spec/ruby/core/string/force_encoding_spec.rb @@ -19,9 +19,9 @@ describe "String#force_encoding" do "abc".force_encoding("internal").encoding.should == Encoding::US_ASCII end - it "defaults to ASCII-8BIT if special encoding name is not set" do + it "defaults to BINARY if special encoding name is not set" do Encoding.default_internal = nil - "abc".force_encoding("internal").encoding.should == Encoding::ASCII_8BIT + "abc".force_encoding("internal").encoding.should == Encoding::BINARY end end |