• Sean McGivern's avatar
    Add RSpec/TopLevelDescribePath cop · ab0a6455
    Sean McGivern authored
    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.
    ab0a6455
top_level_describe_path_spec.rb 1.64 KB