diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-06-27 21:02:36 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-06-27 21:02:36 +0200 |
commit | d80e44deec77678fe2d72f94c17b2409b3e794d5 (patch) | |
tree | 612bf2313550e0982dda452f48492cc069e1c21a /spec/ruby/core/string/ascii_only_spec.rb | |
parent | c940397116c5aef76b1c0d05561c11d43ef596a7 (diff) | |
download | ruby-d80e44deec77678fe2d72f94c17b2409b3e794d5.tar.gz |
Update to ruby/spec@8d74d49
Diffstat (limited to 'spec/ruby/core/string/ascii_only_spec.rb')
-rw-r--r-- | spec/ruby/core/string/ascii_only_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/string/ascii_only_spec.rb b/spec/ruby/core/string/ascii_only_spec.rb index e9f2dc1a36..c7e02fd874 100644 --- a/spec/ruby/core/string/ascii_only_spec.rb +++ b/spec/ruby/core/string/ascii_only_spec.rb @@ -24,9 +24,9 @@ describe "String#ascii_only?" do end describe "with non-ASCII only characters" do - it "returns false if the encoding is ASCII-8BIT" do + it "returns false if the encoding is BINARY" do chr = 128.chr - chr.encoding.should == Encoding::ASCII_8BIT + chr.encoding.should == Encoding::BINARY chr.ascii_only?.should be_false end |