[rspec-users] Cucumber - RSpec matcher

James Byrne lists at ruby-forum.com
Tue Mar 10 12:46:12 EDT 2009


Aslak Hellesøy wrote:
> On Mon, Mar 9, 2009 at 8:48 PM, James Byrne <lists at ruby-forum.com> 
> wrote:
> 
>> > 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.

Ruby semantics are not at issue.  I read "==" to mean "is equal to" in 
its English sense and no other, as in "two plus five is equal to seven".

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list