[rspec-users] Unable to stub a class method in a before_filter

Fernando Perez lists at ruby-forum.com
Tue Nov 4 15:51:10 EST 2008


Crap! I was stubbing Product, instead of Site! It all works now. Matt's 
typo put me on the track!

But I will definitely use the trick Spec::Runner.configure do 
|config|...
 to avoid having to type this stub in all my files.

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


More information about the rspec-users mailing list