[rspec-users] Writing controller spec

Amit Kulkarni lists at ruby-forum.com
Wed Oct 28 05:49:44 EDT 2009

Carlos Souza wrote:
> Amit,
> Your controller spec that you said was working was not actually testing 
> your
> controller since you were not calling any of your controller methods.

 Ok.In that case can you suggest how to call controller methods from the 
uppermost code which is running fine and how to pass parameters.

> I'd suggest you create some code from rspec_scaffold on your rails 
> project
> and just check out the code that's generated for you.
> ruby script/generate rspec_scaffold BpPost title:string body:text

I will check this out..

Also any suggestions regarding the bottom code...
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list