[rspec-users] Trouble defining a stub method for a controller

Aníbal Rojas anibalrojas at gmail.com
Tue May 29 13:42:04 EDT 2007


Hello,

    Not sure if I am doing something really wrong (let's not say
stupid for now), but I haven't been able to stub a controller method
like:

     controller.stub!(:logged_in?).and_return(true)

     Please help, this is driving me nuts ;-)

-- 
Aníbal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com


More information about the rspec-users mailing list