Skip to content

Commit

Permalink
Merge pull request #2789 from p8/code-statistics-test-dirs
Browse files Browse the repository at this point in the history
Register Rails::CodeStatistics directory with test_directory arg
  • Loading branch information
JonRowe committed Sep 2, 2024
1 parent 1bb407e commit a124bb7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rspec-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a124bb7

Please sign in to comment.