aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/integer/lcm_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/lcm_spec.rb')
-rw-r--r--spec/ruby/core/integer/lcm_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/integer/lcm_spec.rb b/spec/ruby/core/integer/lcm_spec.rb
index 6d608bdf41..77d3ad3488 100644
--- a/spec/ruby/core/integer/lcm_spec.rb
+++ b/spec/ruby/core/integer/lcm_spec.rb
@@ -44,15 +44,15 @@ describe "Integer#lcm" do
end
it "raises an ArgumentError if not given an argument" do
- lambda { 12.lcm }.should raise_error(ArgumentError)
+ -> { 12.lcm }.should raise_error(ArgumentError)
end
it "raises an ArgumentError if given more than one argument" do
- lambda { 12.lcm(30, 20) }.should raise_error(ArgumentError)
+ -> { 12.lcm(30, 20) }.should raise_error(ArgumentError)
end
it "raises a TypeError unless the argument is an Integer" do
- lambda { 39.lcm(3.8) }.should raise_error(TypeError)
- lambda { 45872.lcm([]) }.should raise_error(TypeError)
+ -> { 39.lcm(3.8) }.should raise_error(TypeError)
+ -> { 45872.lcm([]) }.should raise_error(TypeError)
end
end