blog.sorah.jp

rspec-rails は Gemfile で development グループにも入れてあげよう

なんか rspec-rails でテストが生成されないなーと思ってたらこういう事だった。ちゃんとREADME読めっていう話ですね!

https://github.com/rspec/rspec-rails#configure

It needs to be in the :development group to expose generators and rake tasks without having to type RAILS_ENV=test.

group :test, :development do
  gem "rspec-rails"
end

Backfilled at , Published at