Skip to content

Commit

Permalink
Update native_thread_id_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroProtagonist authored and eregon committed Oct 31, 2022
1 parent 3ad9cfd commit 5057226
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/thread/native_thread_id_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5057226

Please sign in to comment.