rails generator integration_test などが動かない
bundle exec rails g integration_test hogeと唱えてみても何も出てこない。
なんでぞ?!ということで調査です。
config/application.rbで無効にしていたのが原因でした。
config.generators do |g| g.controller_specs false g.routing_specs false g.helper_specs false g.request_specs false g.assets false g.helper false end
解決策1
application.rbにてtrueに設定する
pushしなきゃいけなくなるんで、他人とのプロジェクトなんで、協調性が足りないといわれるんで、この対応は無し(笑)
解決策2
generateコマンドのオプションに--request-specsを付与する
bundle exec rails g rspec:integration aaa --request-specs
おk。