[rspec-users] rails edge

aslak hellesoy aslak.hellesoy at gmail.com
Wed May 23 08:08:52 EDT 2007


On 5/23/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> On 5/23/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> > On 5/22/07, Jonathan Linowes <jonathan at parkerhill.com> wrote:
> > > hi,
> > > first time trying rspec, and rails edge. Are there any known issues
> > > running rspec with rails edge?
> > >
> >
> > It was fine a few days ago, but I just got new errors.
> >
> > > for one, apparently script/generate scaffold_resource has been
> > > renamed just "resource". Do I just search/replace "scaffold_resource"
> > > with "resource" in file rspec_resource_generator.rb ? Somethings
> > > still missing.
> > >
> >
> > Yes. I've just committed changes to rspec_generator on trunk so that
> > it will look for the new path.
> >
> > There are still some issues that I'll try to fix quickly...
> >
>
> It looks like edge rails' resource generator is no longer generating
> controllers with the 7 CRUD methods. Now it's creating empty
> controllers.
>
> I'm not sure if this is intentional (are they baking in automatic
> REST?) or if it's an oversight due to their recent refactorings.
>
> So for now, Spec::Rails is broken on Edge Rails, and Edge Rails'
> Scaffold generator seems broken to me. But I might have missed
> something.
>

Ok, the rspec_resource generator should be fixed now. We should
probably rename it to rspec_scaffold to match the Rails name.

One thing that isn't working with Spec::Rails on Rails edge is should
redirect_to(url_options)

I'm not sure why yet.

Aslak

> Aslak
>
> > Aslak
> >
> > > before i get "Couldn't find 'scaffold_resource' generator"
> > >
> > > after the edit i get
> > >
> > > "No such file or directory - [myprojectpath]/vendor/rails/railties/
> > > lib/rails_generator/generators/components/resource/templates/
> > > view_index.rhtml
> > > _______________________________________________
> > > rspec-users mailing list
> > > rspec-users at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> > >
> >
>


More information about the rspec-users mailing list