summaryrefslogtreecommitdiff
path: root/spec/ruby/core/thread/exit_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/exit_spec.rb')
-rw-r--r--spec/ruby/core/thread/exit_spec.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/ruby/core/thread/exit_spec.rb b/spec/ruby/core/thread/exit_spec.rb
index c3f710920e..dbcd889898 100644
--- a/spec/ruby/core/thread/exit_spec.rb
+++ b/spec/ruby/core/thread/exit_spec.rb
@@ -1,6 +1,11 @@
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
-require_relative 'shared/exit'
+
+describe "Thread#exit" do
+ it "is an alias of Thread#kill" do
+ Thread.instance_method(:exit).should == Thread.instance_method(:kill)
+ end
+end
describe "Thread#exit!" do
it "needs to be reviewed for spec completeness"
@@ -10,6 +15,6 @@ describe "Thread.exit" do
it "causes the current thread to exit" do
thread = Thread.new { Thread.exit; sleep }
thread.join
- thread.status.should be_false
+ thread.status.should == false
end
end