Plugins - RSpec Resource Generator

StarAdd to favorites

Use this generator to generate RESTful scaffolding with RSpec specifications.

Syntax is exactly the same as the scaffold_resource generator: ./script/generate rspec_resource ModelName [field:type field:type]

When you run this generator, it will create a migration, model, and model spec file. In addition, it gives you a RESTful controller with all the actions filled in, and a complete specification for the controller. Views are all hooked up too.

Generate the code, run the migration, and you’ve got 26 passing RESTful controller specifications. Salt and hot sauce to taste.

http://svn.flpr.org/public/plugins/rspec_resource_generator/

Most code shamelessly jacked from the scaffold_resource plugin. I did, however, write all the specs. This code released under the DoWhatYouWantWithIt license.

Pat Maddox

http://svn.flpr.org/public/plugins/rspec_resource_generator

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment
David 23 Feb 2008

how do you install it ?

Matt 20 Sep 2007

the RSpec plugin already has this generator builtin. Try ruby script/generate to see the different options.

Joseph 24 Jul 2007

It was very not-obvious to me, but this is now built into the rspecon_rails plugin as rspecscaffold. ie:

script/generate rspecscaffold Blog title:string content:text createdon:datetime

Marston A. 14 May 2007

Almost 2months since the last post and I can't either. I would LOVE to use this plugin.

Sudhindra Rao 18 Apr 2007

I cannot seem to download/connect to the repository. Can u help?

Thanks Sudhindra

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.
Recruiting software

Have a comment?