summaryrefslogtreecommitdiff
path: root/spec/ruby/core/random/shared/bytes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/random/shared/bytes.rb')
-rw-r--r--spec/ruby/core/random/shared/bytes.rb4
1 files changed, 2 insertions, 2 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