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