aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/fiber/new_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/fiber/new_spec.rb')
-rw-r--r--spec/ruby/core/fiber/new_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/fiber/new_spec.rb b/spec/ruby/core/fiber/new_spec.rb
index c2175cb612..b43c1386be 100644
--- a/spec/ruby/core/fiber/new_spec.rb
+++ b/spec/ruby/core/fiber/new_spec.rb
@@ -16,7 +16,7 @@ describe "Fiber.new" do
end
it "raises an ArgumentError if called without a block" do
- lambda { Fiber.new }.should raise_error(ArgumentError)
+ -> { Fiber.new }.should raise_error(ArgumentError)
end
it "does not invoke the block" do