[rspec-users] Cucumber - RSpec matcher
dchelimsky at gmail.com
Mon Mar 9 15:08:25 EDT 2009
On Mon, Mar 9, 2009 at 2:32 PM, Rich Morin <rdm at cfcl.com> wrote:
> 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.
You're about two years too late. If I had it to do over again, I'd
probably stick with the original version:
But changing that back now would result in mutiny. C'est la vie.
> 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
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users