[Ironruby-core] should equal in RubySpecs

Shri Borde Shri.Borde at microsoft.com
Wed Jan 7 03:48:31 EST 2009


I noticed this in core\thread\current_spec.rb.

  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.

Thanks,
Shri

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090107/0a58a64a/attachment-0001.html>


More information about the Ironruby-core mailing list