aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/comparable/equal_value_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/comparable/equal_value_spec.rb')
-rw-r--r--spec/ruby/core/comparable/equal_value_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/comparable/equal_value_spec.rb b/spec/ruby/core/comparable/equal_value_spec.rb
index 53c83aa2d3..ddcc03cb41 100644
--- a/spec/ruby/core/comparable/equal_value_spec.rb
+++ b/spec/ruby/core/comparable/equal_value_spec.rb
@@ -49,7 +49,7 @@ describe "Comparable#==" do
end
it "raises an ArgumentError" do
- lambda { (a == b) }.should raise_error(ArgumentError)
+ -> { (a == b) }.should raise_error(ArgumentError)
end
end
@@ -60,7 +60,7 @@ describe "Comparable#==" do
end
it "lets it go through" do
- lambda { (a == b) }.should raise_error(StandardError)
+ -> { (a == b) }.should raise_error(StandardError)
end
end
@@ -71,13 +71,13 @@ describe "Comparable#==" do
end
it "lets it go through" do
- lambda { (a == b) }.should raise_error(TypeError)
+ -> { (a == b) }.should raise_error(TypeError)
end
end
it "lets it go through if it is not a StandardError" do
a.should_receive(:<=>).once.and_raise(Exception)
- lambda { (a == b) }.should raise_error(Exception)
+ -> { (a == b) }.should raise_error(Exception)
end
end