it “returns the current thread” do
t = Thread.new { Thread.current }
t.value.should equal(t)
Thread.current.should_not equal(t.value)
end
Is this any different than writing “t.value.should == t”? Is either of
them the recommended way? Seems odd to support two ways of writing the
exact same thing.
t = Thread.new { Thread.current }
t.value.should equal(t)
Thread.current.should_not equal(t.value)
end
Is this any different than writing “t.value.should == t”? Is either of
them the recommended way? Seems odd to support two ways of writing the
exact same thing.
t = Thread.new { Thread.current }
t.value.should equal(t)
Thread.current.should_not equal(t.value)
end
Is this any different than writing “t.value.should == t”? Is either of
them the recommended way? Seems odd to support two ways of writing the
exact same thing.
Thanks,
Shri
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.