summaryrefslogtreecommitdiff
path: root/spec/ruby/core/thread/element_set_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/element_set_spec.rb')
-rw-r--r--spec/ruby/core/thread/element_set_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/thread/element_set_spec.rb b/spec/ruby/core/thread/element_set_spec.rb
index c109468a5e..d974b5e1c7 100644
--- a/spec/ruby/core/thread/element_set_spec.rb
+++ b/spec/ruby/core/thread/element_set_spec.rb
@@ -17,8 +17,8 @@ describe "Thread#[]=" do
end
it "raises exceptions on the wrong type of keys" do
- lambda { Thread.current[nil] = true }.should raise_error(TypeError)
- lambda { Thread.current[5] = true }.should raise_error(TypeError)
+ -> { Thread.current[nil] = true }.should raise_error(TypeError)
+ -> { Thread.current[5] = true }.should raise_error(TypeError)
end
it "is not shared across fibers" do