aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/to_i_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/to_i_spec.rb')
-rw-r--r--spec/ruby/core/string/to_i_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/string/to_i_spec.rb b/spec/ruby/core/string/to_i_spec.rb
index f86d3a43a7..a37be47778 100644
--- a/spec/ruby/core/string/to_i_spec.rb
+++ b/spec/ruby/core/string/to_i_spec.rb
@@ -126,9 +126,9 @@ describe "String#to_i" do
end
it "raises an ArgumentError for illegal bases (1, < 0 or > 36)" do
- lambda { "".to_i(1) }.should raise_error(ArgumentError)
- lambda { "".to_i(-1) }.should raise_error(ArgumentError)
- lambda { "".to_i(37) }.should raise_error(ArgumentError)
+ -> { "".to_i(1) }.should raise_error(ArgumentError)
+ -> { "".to_i(-1) }.should raise_error(ArgumentError)
+ -> { "".to_i(37) }.should raise_error(ArgumentError)
end
it "returns a Fixnum for long strings with trailing spaces" do