aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/enumerable/slice_before_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/enumerable/slice_before_spec.rb')
-rw-r--r--spec/ruby/core/enumerable/slice_before_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/enumerable/slice_before_spec.rb b/spec/ruby/core/enumerable/slice_before_spec.rb
index ad730be245..f9b33f7b28 100644
--- a/spec/ruby/core/enumerable/slice_before_spec.rb
+++ b/spec/ruby/core/enumerable/slice_before_spec.rb
@@ -41,15 +41,15 @@ describe "Enumerable#slice_before" do
end
it "does not accept arguments" do
- lambda {
+ -> {
@enum.slice_before(1) {}
}.should raise_error(ArgumentError)
end
end
it "raises an ArgumentError when given an incorrect number of arguments" do
- lambda { @enum.slice_before("one", "two") }.should raise_error(ArgumentError)
- lambda { @enum.slice_before }.should raise_error(ArgumentError)
+ -> { @enum.slice_before("one", "two") }.should raise_error(ArgumentError)
+ -> { @enum.slice_before }.should raise_error(ArgumentError)
end
describe "when an iterator method yields more than one value" do