[rspec-users] [PLUGIN] rspec_resource_generator - RESTful scaffold generator with RSpec specifications

Pat Maddox pergesu at gmail.com
Sat Nov 4 11:42:22 EST 2006


Well I was just writing specs for one RESTful controller, then I
started writing nearly the exact same specs..obviously then it was
time for a plugin.

Sorry for not giving you credit earlier, I was at the end of a long
coding session and just wanted to get rid of it.  You're in there now
:)

Pat

On 11/3/06, Luke Redpath <contact at lukeredpath.co.uk> wrote:
> Ah Pat...so is this why you were quizzing me on speccing controllers
> today huh? ;)
>
> Looks good mate. I'll give it a bash when I'm next in the office.
>
> Cheers,
> Luke Redpath
> contact at lukeredpath.co.uk
>
>
>
> On 3 Nov 2006, at 23:38, Pat Maddox wrote:
>
> > rspec_resource_generator
> > ========================
> >
> > By Pat Maddox
> >
> > 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.
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list