[rspec-users] Use of 'should' in another thread

Daniel Libanori daniellibanori at gmail.com
Thu Jun 12 18:14:11 EDT 2008


  I've tried to find anything about using 'should' within a Thread, but
it is a little hard do look up there, so I hope you forgive-me if I am
asking an "old question".

  I guess this spec should fail:

describe Thread do
  it "must be fine" do
    Thread.new { true.should_not be_true } # Why don't fail?!

  It seems that some parts of RSpec are not thread safe. Right?


More information about the rspec-users mailing list