Specs not Generated for Controllers in 2.0.0.beta.22 #205

Closed
picklepumpers opened this Issue Sep 15, 2010 · 6 comments

Projects

None yet

4 participants

OS X 10.6.4 client
Ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
Rails 3.0.0
Rspec 2.0.0.beta.22

From terminal:
$ 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.

Notes:
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
Ruby 1.9.2
Rails 3.0.0
RSpec 2.0.0.beta.22

I can reproduce with the same setup as ProGNOMmers.

Owner

Generate controller and view specs with the controller generarator

Still doesn't work.

I've tried:

$ 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.

Owner

PicklePumpers - this fix here is in git HEAD, to be released in beta.23 - it does not fix the already released beta.22.

HTH

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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment