OS X 10.6.4 client
Ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
$ rails new test_app -T
$ cd test_app
Edit Gemfile add:
gem 'rspec', '2.0.0.beta.22'
gem 'rspec-rails', '2.0.0.beta.22'
$ bundle update
$ rails generate controller Pages home contact about
$ rails generate model User name:string
Specs are not generated for the controller (helper specs are created).
Specs are created for the model.
Change Gemfile to:
gem 'rspec', '2.0.0.beta.20'
gem 'rspec-rails', '2.0.0.beta.20'
$ bundle update
$ rails generate controller Potatoes russet yam sweet red
Specs are generated for the controller.
In beta.22 you can see the "invoke rspec" line in the output but no specs are listed while in the beta.20 version you see "create spec/controllers/potatoes_controller_spec.rb" etc.
The same here:
Linux Ubuntu 10.04 x64
I can reproduce with the same setup as ProGNOMmers.
Generate controller and view specs with the controller generarator
Still doesn't work.
$ rails generate controller Potatoes red russet --controller-specs
$ rails generate controller Potatoes red russet --controller-specs true
Creates controller but still no spec.
$ rails generate rspec:controller Potatoes red russet --controller-specs
$ rails generate rspec:controller Potatoes red russet --controller-specs true
This does nothing.
PicklePumpers - this fix here is in git HEAD, to be released in beta.23 - it does not fix the already released beta.22.
Ah, now I understand. I thought you were saying I wasn't using it right and I assumed you were right. I figured I was just doing something stupid but couldn't figure out what it was. Thank you.