2017-08-13 11 views
0

Ruby on Railsアプリケーションで、次のコマンドを実行すると、必要なテストファイルを作成できません。integration_testを使用したRuby on Railsテスト

config.generators do |g| 
    g.test_framework :rspec, 
     fixtures: true, 
     view_specs: false, 
     helper_specs: false, 
     routing_specs: false, 
     controller_specs: false, 
     request_specs: false 
    g.fixture_replacement :factory_girl, dir: "spec/factories" 
end 
:私は自分のアプリケーションのコードの以降の部分を持っている

invoke rspec 

rails generate integration_test named --integration-tool=rspec -s 

は、私はこのメッセージを取得し、

invoke test_unit 
    create test/integration/named_test.rb 

ただし、次のファイルを作成したいです

私は見ることができません私が欠けている帽子、

任意の提案、

感謝。

答えて

0

Rspecはあなたの設定にあるテストフレームワークのようです。それで、test_unitがファイルを生成していないのです。一方、IMOでは、rspecは統合テストを実行するのに適しています。ただ、rspecのチュートリアルに従ってください。

関連する問題