I installed it using
rails generate rspec:install
When I type
rake g model User
I’ve got a similar stack to yours. I’ve always run ‘rails g model
User’ (note rails not rake) but if I try ‘rake g’ it spits out an
error, so if you’re running the rails script instead, I could be
wrong.
I don’t see any spec targets.
When I run rake spec, nothing happens.
Is rspec-rails in both your :test and :development groups in your
Gemfile? It needs to be in :development to provide the rake tasks and
generators. See David’s blog [1] for more info.
I had a similar problem, then I noticed that I didn’t include gem
‘rspec-rails’ in my development environment like what David mentioned
above.
That fixed the problem I had. I’m running the following stack:
rails 3.0.3
rake (0.8.7)
rspec 2.5.0
rspec-rails 2.5.0
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.