Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Spec Thread.exit

  • Loading branch information...
commit 4f900c9d0b2c525ae367444d736e91f82515680c 1 parent 43304bc
John Firebaugh jfirebaugh authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/ruby/core/thread/exit_spec.rb
6 spec/ruby/core/thread/exit_spec.rb
View
@@ -13,5 +13,9 @@
end
describe "Thread.exit" do
- it "needs to be reviewed for spec completeness"
+ it "causes the current thread to exit" do
+ thread = Thread.new { Thread.exit; sleep }
+ thread.join
+ thread.status.should be_false
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.