aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/array/drop_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/drop_spec.rb')
-rw-r--r--spec/ruby/core/array/drop_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/array/drop_spec.rb b/spec/ruby/core/array/drop_spec.rb
index 1bd2e6cc25..89b8534af4 100644
--- a/spec/ruby/core/array/drop_spec.rb
+++ b/spec/ruby/core/array/drop_spec.rb
@@ -6,7 +6,7 @@ describe "Array#drop" do
end
it "raises an ArgumentError if the number of elements specified is negative" do
- lambda { [1, 2].drop(-3) }.should raise_error(ArgumentError)
+ -> { [1, 2].drop(-3) }.should raise_error(ArgumentError)
end
it "returns an empty Array if all elements are dropped" do