Forum: RSpec shoud error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nicholas Van W. (Guest)
on 2009-04-30 16:57
(Received via mailing list)
Hi,
I had some tests where I accidently used ".shoud" instead of ".should".

There was no error, and all tests passed no matter what. Is the the
correct
behaviour or should there be an error if you mispell should?

Thanks,
Nick
David C. (Guest)
on 2009-04-30 17:01
(Received via mailing list)
On Thu, Apr 30, 2009 at 7:51 AM, Nicholas Van W.
<removed_email_address@domain.invalid> wrote:
> Hi,
> I had some tests where I accidently used ".shoud" instead of ".should".
> There was no error, and all tests passed no matter what. Is the the correct
> behaviour or should there be an error if you mispell should?

Normally there would be an error, but if the object that you're
sending shoud to is a stub set to ignore calls it doesn't understand,
then it would just ignore it. If that's not the problem, please show
us some code.

David
Nicholas Van W. (Guest)
on 2009-04-30 17:47
(Received via mailing list)
That would be it. I got confused between @messenger (StringIO) in
Cucumber
and @messenger in RSpec (mock) in the RSpec book and though I was
looking at
a StringIO object.
Thanks,
Nick
This topic is locked and can not be replied to.