[rspec-users] How do I generate specs for existing controllers?

Jonathan Linowes jonathan at parkerhill.com
Thu Nov 25 09:33:51 EST 2010


rails hides them?

why?


On Nov 25, 2010, at 9:20 AM, David Chelimsky wrote:

> On Nov 20, 2010, at 7:07 PM, Volkan Unsal wrote:
> 
>> I want to generate boilerplate code for existing controller, models
>> and views. Is there a command or a gem that lets me do that?
> 
> You can't see them because rails hides them, but:
> 
> rails generate rspec:model
> rails generate rspec:view
> rails generate rspec:controller
> 
> Each of these generates only the spec.
> 
> HTH,
> David
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list