summaryrefslogtreecommitdiff
path: root/spec/ruby/core/thread/name_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/name_spec.rb')
-rw-r--r--spec/ruby/core/thread/name_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/thread/name_spec.rb b/spec/ruby/core/thread/name_spec.rb
index adb2d08fae..47d807be4d 100644
--- a/spec/ruby/core/thread/name_spec.rb
+++ b/spec/ruby/core/thread/name_spec.rb
@@ -34,9 +34,9 @@ describe "Thread#name=" do
end
it "raises an ArgumentError if the name includes a null byte" do
- lambda {
+ -> {
@thread.name = "new thread\0name"
- }.should raise_error(ArgumentError)
+ }.should.raise(ArgumentError)
end
it "can be reset to nil" do