summaryrefslogtreecommitdiff
path: root/spec/ruby/library/securerandom
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/securerandom')
-rw-r--r--spec/ruby/library/securerandom/base64_spec.rb2
-rw-r--r--spec/ruby/library/securerandom/hex_spec.rb2
-rw-r--r--spec/ruby/library/securerandom/random_bytes_spec.rb2
-rw-r--r--spec/ruby/library/securerandom/random_number_spec.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/securerandom/base64_spec.rb b/spec/ruby/library/securerandom/base64_spec.rb
index c0ddbf85ce..34cd419ce2 100644
--- a/spec/ruby/library/securerandom/base64_spec.rb
+++ b/spec/ruby/library/securerandom/base64_spec.rb
@@ -42,7 +42,7 @@ describe "SecureRandom.base64" do
end
it "raises ArgumentError on negative arguments" do
- lambda {
+ -> {
SecureRandom.base64(-1)
}.should raise_error(ArgumentError)
end
diff --git a/spec/ruby/library/securerandom/hex_spec.rb b/spec/ruby/library/securerandom/hex_spec.rb
index 525b4d1e35..bdb920b217 100644
--- a/spec/ruby/library/securerandom/hex_spec.rb
+++ b/spec/ruby/library/securerandom/hex_spec.rb
@@ -41,7 +41,7 @@ describe "SecureRandom.hex" do
end
it "raises ArgumentError on negative arguments" do
- lambda {
+ -> {
SecureRandom.hex(-1)
}.should raise_error(ArgumentError)
end
diff --git a/spec/ruby/library/securerandom/random_bytes_spec.rb b/spec/ruby/library/securerandom/random_bytes_spec.rb
index 7ab949f5d4..275a897315 100644
--- a/spec/ruby/library/securerandom/random_bytes_spec.rb
+++ b/spec/ruby/library/securerandom/random_bytes_spec.rb
@@ -37,7 +37,7 @@ describe "SecureRandom.random_bytes" do
end
it "raises ArgumentError on negative arguments" do
- lambda {
+ -> {
SecureRandom.random_bytes(-1)
}.should raise_error(ArgumentError)
end
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