rspec, Rails 3, and missing rake tasks
August 23rd 2011I was setting up a fresh Rails 3 app and the following bit me.
$ rake spec:models
rake aborted!
Don't know how to build task 'spec:models'
After some head scratching and a closer look at the docs, I realized that I had
forgotten to add the rspec-rails gem to my development environment.
I had it in only the test and cucumber environments. Seems like an odd thing to do, but it lets you run the various rake tasks in dev.
In Gemfile:
group :development, :test, :cucumber do
gem "rspec-rails"
end


