class RuboCop::Cop::RSpec::SpecFilePathFormat

def filename_ends_with?(pattern)

def filename_ends_with?(pattern)
  expanded_file_path.match?("#{pattern}$")
end