aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/thread/shared/wakeup.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/shared/wakeup.rb')
-rw-r--r--spec/ruby/core/thread/shared/wakeup.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/thread/shared/wakeup.rb b/spec/ruby/core/thread/shared/wakeup.rb
index 71838d88e5..f111edf0fd 100644
--- a/spec/ruby/core/thread/shared/wakeup.rb
+++ b/spec/ruby/core/thread/shared/wakeup.rb
@@ -56,6 +56,6 @@ describe :thread_wakeup, shared: true do
it "raises a ThreadError when trying to wake up a dead thread" do
t = Thread.new { 1 }
t.join
- lambda { t.send @method }.should raise_error(ThreadError)
+ -> { t.send @method }.should raise_error(ThreadError)
end
end