[rspec-users] Forum.count.should, should doesn't work?

Zhenning Guan lists at ruby-forum.com
Wed May 20 05:18:00 EDT 2009


Zhenning Guan wrote:
> David Chelimsky wrote:
>> On Tue, May 19, 2009 at 10:09 AM, Zhenning Guan <lists at ruby-forum.com> 
>> wrote:
>>> features/step_definitions/webrat_steps.rb:10
>>>
>>> 1 scenario (1 failed)
>>> 2 steps (1 failed, 1 passed)
>>>
>>> ===
>>> Forum.count == counts.to_i does fine
>> 
>> That's not an expectation so it won't pass or fail. I'd bet that's
>> returning false, which is not going to make a step fail (only an error
>> will).
> 
> I means....
> Forum.count == counts.to_i
> doesn't work...

correct it
Forum.count.should == counts.to_i
doesn't work.
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list