[rspec-users] Cucumber - RSpec matcher

aslak hellesoy aslak.hellesoy at gmail.com
Mon Mar 9 18:00:19 EDT 2009


On Mon, Mar 9, 2009 at 8:48 PM, James Byrne <lists at ruby-forum.com> wrote:

> David Chelimsky wrote:
> >
> > No, no, no :)
> >
> > 5.should == 5
> > 6.should be > 5
> >
> > Read them aloud and they.should make(:sense).
> >
> > Cheers,
> > David
>
> Perhaps it is my dialect, but what is wrong with:
>
>   "5 should be equal to 5"
>
> which generally is how I read "=="?  Actually, I tend to read "==" (in
> Ruby) as "is equal to".


RSpec does - and will - use Ruby's semantics for equality:
http://www.ruby-doc.org/core/classes/Object.html
Homemade semantics will not be implemented, as inconsistency with Ruby's
semantics will lead to confusion.

Aslak


>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090309/ef5b61ed/attachment.html>


More information about the rspec-users mailing list