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/random | |
parent | c940397116c5aef76b1c0d05561c11d43ef596a7 (diff) |
Update to ruby/spec@8d74d49
Diffstat (limited to 'spec/ruby/core/random')
-rw-r--r-- | spec/ruby/core/random/shared/bytes.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/random/shared/urandom.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/random/shared/bytes.rb b/spec/ruby/core/random/shared/bytes.rb index 3485d0f221..54b6b0e4df 100644 --- a/spec/ruby/core/random/shared/bytes.rb +++ b/spec/ruby/core/random/shared/bytes.rb @@ -7,8 +7,8 @@ describe :random_bytes, shared: true do @object.bytes(15).length.should == 15 end - it "returns an ASCII-8BIT String" do - @object.bytes(15).encoding.should == Encoding::ASCII_8BIT + it "returns an BINARY String" do + @object.bytes(15).encoding.should == Encoding::BINARY end it "returns a random binary String" do diff --git a/spec/ruby/core/random/shared/urandom.rb b/spec/ruby/core/random/shared/urandom.rb index f50d30c9de..e5ffcffca6 100644 --- a/spec/ruby/core/random/shared/urandom.rb +++ b/spec/ruby/core/random/shared/urandom.rb @@ -13,8 +13,8 @@ describe :random_urandom, shared: true do }.should raise_error(ArgumentError) end - it "returns an ASCII-8BIT String" do - Random.send(@method, 15).encoding.should == Encoding::ASCII_8BIT + it "returns an BINARY String" do + Random.send(@method, 15).encoding.should == Encoding::BINARY end it "returns a random binary String" do |