diff options
Diffstat (limited to 'spec/ruby/library/securerandom/random_number_spec.rb')
-rw-r--r-- | spec/ruby/library/securerandom/random_number_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/securerandom/random_number_spec.rb b/spec/ruby/library/securerandom/random_number_spec.rb index 6b3279e6d7..3c86f55bf5 100644 --- a/spec/ruby/library/securerandom/random_number_spec.rb +++ b/spec/ruby/library/securerandom/random_number_spec.rb @@ -86,7 +86,7 @@ describe "SecureRandom.random_number" do end it "raises ArgumentError if the argument is non-numeric" do - lambda { + -> { SecureRandom.random_number(Object.new) }.should raise_error(ArgumentError) end |