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/. _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
