Add RSpec/TopLevelDescribePath cop
What does this MR do?
The RSpec/FilePath cop checks that a spec file's path is correct, but
only if the file describes a constant. We want to check, for any file
with a top-level describe
, whether the file path ends in
_spec.rb
. We don't care what comes before that; just that it will be
executed by RSpec at all.
Does this MR meet the acceptance criteria?
Performance and testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
Edited by Sean McGivern