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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/random/shared/urandom.rb b/spec/ruby/core/random/shared/urandom.rb
index 316167b63f..159716075c 100644
--- a/spec/ruby/core/random/shared/urandom.rb
+++ b/spec/ruby/core/random/shared/urandom.rb
@@ -8,7 +8,7 @@ describe :random_urandom, shared: true do
end
it "raises an ArgumentError on a negative size" do
- lambda {
+ -> {
Random.send(@method, -1)
}.should raise_error(ArgumentError)
end