From 50572269a2b41c51254ce17c7d5ae4fbb7866409 Mon Sep 17 00:00:00 2001 From: HeroProtagonist Date: Sat, 22 Oct 2022 01:19:00 -0400 Subject: [PATCH] Update native_thread_id_spec.rb --- core/thread/native_thread_id_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/thread/native_thread_id_spec.rb b/core/thread/native_thread_id_spec.rb index 9889d9170b..89871e5759 100644 --- a/core/thread/native_thread_id_spec.rb +++ b/core/thread/native_thread_id_spec.rb @@ -3,11 +3,9 @@ ruby_version_is ''...'3.1' do describe "Thread#native_thread_id" do it "raises NoMethodError" do - -> { - th = Thread.new {} - th.native_thread_id - th.join - }.should raise_error(NoMethodError) + th = Thread.new {} + -> { th.native_thread_id }.should raise_error(NoMethodError) + th.join end end end