hi, first time trying rspec, and rails edge. Are there any known issues running rspec with rails edge? 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. 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
i also tried search/replace "scaffold_resource" with "scaffold" in file vendor/plugins/rspec_on_rails/generators/rspec_resource/ rspec_resource_generator.rb) but similar error "No such file or directory - [myprojectpath]/vendor/rails/railties/ lib/rails_generator/generators/components/scaffold/templates/ view_index.rhtml I think the file its looking for would be view_index.html.erb a quick look it seems the script should be able to handle the new file extensions. ??? On May 22, 2007, at 4:44 PM, Jonathan Linowes wrote:> hi, > first time trying rspec, and rails edge. Are there any known issues > running rspec with rails edge? > > 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. > > 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
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... 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 >
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. 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 > > >
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 > > > > > >
On 23/05/2007, at 10:08 PM, aslak hellesoy wrote:> One thing that isn''t working with Spec::Rails on Rails edge is should > redirect_to(url_options) > > I''m not sure why yet.Yeah I noticed that too. It''s because of: http://dev.rubyonrails.org/changeset/6764 Now you can just use ActionController::Base.parse_formatted_request_parameters -- tim