summaryrefslogtreecommitdiff
path: root/spec/ruby/core/complex/to_f_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/complex/to_f_spec.rb')
-rw-r--r--spec/ruby/core/complex/to_f_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/complex/to_f_spec.rb b/spec/ruby/core/complex/to_f_spec.rb
index 12c34dfbb1..78e6526491 100644
--- a/spec/ruby/core/complex/to_f_spec.rb
+++ b/spec/ruby/core/complex/to_f_spec.rb
@@ -29,13 +29,13 @@ describe "Complex#to_f" do
describe "when the imaginary part is non-zero" do
it "raises RangeError" do
- lambda { Complex(0, 1).to_f }.should raise_error(RangeError)
+ -> { Complex(0, 1).to_f }.should raise_error(RangeError)
end
end
describe "when the imaginary part is Float 0.0" do
it "raises RangeError" do
- lambda { Complex(0, 0.0).to_f }.should raise_error(RangeError)
+ -> { Complex(0, 0.0).to_f }.should raise_error(RangeError)
end
end
end