Aleksandar Simic
2010-Sep-17 12:16 UTC
[rspec-users] Rspec-rails 2.0.0.beta.22 + Rails 3 don''t generate spec/controllers/
Hello, I''ve set up rails 3 with rspec-rails 2.0.0.beta.22. When generating a controller, like so: rails generate controller Users new no spec/controllers get generated. However, when I do: rails generate scaffold Users name:string email:string spec/controllers gets created. These are my steps and my environment: http://pastie.org/1163699 Am I doing something obviously wrong? Thanks
David Chelimsky
2010-Sep-17 13:01 UTC
[rspec-users] Rspec-rails 2.0.0.beta.22 + Rails 3 don''t generate spec/controllers/
On Sep 17, 2010, at 7:16 AM, Aleksandar Simic wrote:> Hello, > > I''ve set up rails 3 with rspec-rails 2.0.0.beta.22. > > When generating a controller, like so: > > rails generate controller Users new > > no spec/controllers get generated. > > However, when I do: > > rails generate scaffold Users name:string email:string > > spec/controllers gets created. > > These are my steps and my environment: > > http://pastie.org/1163699 > > Am I doing something obviously wrong?Nope. Bug. Fixed, but fix not yet released: http://github.com/rspec/rspec-rails/issues/closed#issue/205
Aleksandar Simic
2010-Sep-17 13:14 UTC
[rspec-users] Rspec-rails 2.0.0.beta.22 + Rails 3 don''t generate spec/controllers/
On Fri, Sep 17, 2010 at 2:01 PM, David Chelimsky <dchelimsky at gmail.com> wrote:> > On Sep 17, 2010, at 7:16 AM, Aleksandar Simic wrote: > >> Hello, >> >> I''ve set up rails 3 with rspec-rails 2.0.0.beta.22. >> >> When generating a controller, like so: >> >> ? rails generate controller Users new >> >> no spec/controllers get generated. >> >> However, when I do: >> >> ? rails generate scaffold Users name:string email:string >> >> spec/controllers gets created. >> >> These are my steps and my environment: >> >> http://pastie.org/1163699 >> >> Am I doing something obviously wrong? > > Nope. Bug. Fixed, but fix not yet released: > > http://github.com/rspec/rspec-rails/issues/closed#issue/205Thats good to know. So whats the recommended action: use 2.0.0.beta.21 or wait for 2.0.0.beta.23 to come out? Thanks
David Chelimsky
2010-Sep-17 13:37 UTC
[rspec-users] Rspec-rails 2.0.0.beta.22 + Rails 3 don''t generate spec/controllers/
On Sep 17, 2010, at 8:14 AM, Aleksandar Simic wrote:> On Fri, Sep 17, 2010 at 2:01 PM, David Chelimsky <dchelimsky at gmail.com> wrote: >> >> On Sep 17, 2010, at 7:16 AM, Aleksandar Simic wrote: >> >>> Hello, >>> >>> I''ve set up rails 3 with rspec-rails 2.0.0.beta.22. >>> >>> When generating a controller, like so: >>> >>> rails generate controller Users new >>> >>> no spec/controllers get generated. >>> >>> However, when I do: >>> >>> rails generate scaffold Users name:string email:string >>> >>> spec/controllers gets created. >>> >>> These are my steps and my environment: >>> >>> http://pastie.org/1163699 >>> >>> Am I doing something obviously wrong? >> >> Nope. Bug. Fixed, but fix not yet released: >> >> http://github.com/rspec/rspec-rails/issues/closed#issue/205 > > Thats good to know. > > So whats the recommended action: use 2.0.0.beta.21 or wait for 2.0.0.beta.23 to come out?Neither. This only impacts generators, so if I were in your shoes I''d just stick w/ beta.22 and write my controller specs by hand. If you really feel you need the generators, then you could always point your Gemfile to git: gem "rspec-rails", ">= 2.0.0.beta.22", :git => "git://github.com/rspec/rspec-rails.git" Then run "bundle update" and you''ll be good to go.