aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/array/shared/inspect.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/shared/inspect.rb')
-rw-r--r--spec/ruby/core/array/shared/inspect.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/array/shared/inspect.rb b/spec/ruby/core/array/shared/inspect.rb
index 1bcc9f9ca8..434440c25b 100644
--- a/spec/ruby/core/array/shared/inspect.rb
+++ b/spec/ruby/core/array/shared/inspect.rb
@@ -55,7 +55,7 @@ describe :array_inspect, shared: true do
obj.should_receive(:inspect).and_return(obj)
obj.should_receive(:to_s).and_raise(Exception)
- lambda { [obj].send(@method) }.should raise_error(Exception)
+ -> { [obj].send(@method) }.should raise_error(Exception)
end
it "represents a recursive element with '[...]'" do