[rspec-users] Cucumber - RSpec matcher

Rich Morin rdm at cfcl.com
Mon Mar 9 15:32:16 EDT 2009

At 10:54 -0700 3/9/09, Pat Maddox wrote:
> Use should == instead of equal.  == is equality, equal
> is object identity.  You very rarely want to use equal.

It's probably far too late to change this, but it might
have made more sense to define same_obj_as?() for the
object identity case, leaving equal?() available for the
more common test.

http://www.cfcl.com/rdm            Rich Morin
http://www.cfcl.com/rdm/resume     rdm at cfcl.com
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Technical editing and writing, programming, and web development

More information about the rspec-users mailing list