From a124bb71d57004ec270347f48b8e483e51c7841c Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Mon, 2 Sep 2024 21:47:04 +0100 Subject: [PATCH] Merge pull request #2789 from p8/code-statistics-test-dirs Register Rails::CodeStatistics directory with test_directory arg --- lib/rspec-rails.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rspec-rails.rb b/lib/rspec-rails.rb index 4d6ce04cf..78b32320d 100644 --- a/lib/rspec-rails.rb +++ b/lib/rspec-rails.rb @@ -22,8 +22,7 @@ class Railtie < ::Rails::Railtie Hash[dirs.map { |d| [d.split('/').last, d] }].each do |type, dir| name = type.singularize.capitalize - ::Rails::CodeStatistics.register_directory "#{name} specs", dir - ::Rails::CodeStatistics::TEST_TYPES << "#{name} specs" + ::Rails::CodeStatistics.register_directory "#{name} specs", dir, test_directory: true end end