[rspec-users] [Cucumber] Bug?
manderson at drillinginfo.com
Fri Apr 10 09:03:22 EDT 2009
I prefer to use the form 'msg.should exist' because I feel that it reads
better. The error message is a little wordy, but still more communicative
than expected true and got false.
> -----Original Message-----
> From: rspec-users-bounces at rubyforge.org [mailto:rspec-users-
> bounces at rubyforge.org] On Behalf Of Fedor Fomenko
> Sent: Friday, April 10, 2009 4:43 AM
> To: rspec-users at rubyforge.org
> Subject: Re: [rspec-users] [Cucumber] Bug?
> Thank you for your help.
> I found the problem. My assertion was wrong. I should have used
> msg.exists?.should == true since msg.should_not == nil is allways true.
> Watir always returns an object which might or might nor have text field.
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 3998 (20090409) __________
> The message was checked by ESET NOD32 Antivirus.
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3999 (20090410) __________
The message was checked by ESET NOD32 Antivirus.
More information about the rspec-users