[rspec-users] Writing controller spec
lists at ruby-forum.com
Wed Oct 28 05:49:44 EDT 2009
Carlos Souza wrote:
> Your controller spec that you said was working was not actually testing
> 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
> 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