aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/thread/main_spec.rb
blob: 0cada8f59dab15df23c56a06f589dd03fafabb83 (plain)
1
2
3
4
5
6
7
8
9
10
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)

describe "Thread.main" do
  it "returns the main thread" do
    Thread.new { @main = Thread.main ; @current = Thread.current}.join
    @main.should_not == @current
    @main.should == Thread.current
  end
end