From c7f5eff0f73a20044ced98ac348d196fac746964 Mon Sep 17 00:00:00 2001 From: Arthur Campbell Date: Thu, 1 Jun 2023 13:38:52 +0100 Subject: [PATCH] alter config to allow creating controllers from the command line with associated spec files that matches how we test --- config/application.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/application.rb b/config/application.rb index 49a236636..4fd65c695 100644 --- a/config/application.rb +++ b/config/application.rb @@ -41,5 +41,14 @@ module DataCollector key: "_data_collector_session", secure: (Rails.env.production? || Rails.env.staging? || Rails.env.review?) ) + + config.generators do |g| + g.test_framework :rspec, + request_specs: true, + view_specs: false, + routing_specs: false, + helper_specs: false, + controller_specs: false + end end end