[rspec-users] newbie: how to preserve NoMethodError under stubbing?

Lille lille.penguini at gmail.com
Fri Jul 23 19:46:07 EDT 2010


I've been browsing the RSpec book and the RDoc, but I can't see how to
ensure the following:

Stub an instance with a method it doesn't have and raise NoMethodError
(or something like it.)

I want to do this because I don't want to use incorrect names for my
dependency methods...



More information about the rspec-users mailing list