diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-08 21:09:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-08 21:09:32 +0300 |
commit | 7e17b031fa8e57a698fc474ded12eaa2553c87f5 (patch) | |
tree | d753ae5527f835901f86a30608c024e86e11fbaa /rubocop | |
parent | 66a3180a3b9417cb5259ecca83934f22b136394b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/cop/gitlab/duplicate_spec_location.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/gitlab/duplicate_spec_location.rb b/rubocop/cop/gitlab/duplicate_spec_location.rb index 025f75d644f..ece3b9313d9 100644 --- a/rubocop/cop/gitlab/duplicate_spec_location.rb +++ b/rubocop/cop/gitlab/duplicate_spec_location.rb @@ -25,7 +25,7 @@ module RuboCop MSG = 'Duplicate spec location in `%<path>s`.' def on_top_level_describe(node, _args) - path = file_path_for_node(node).sub(/\A#{rails_root}\//, '') + path = file_path_for_node(node).sub(%r{\A#{rails_root}/}, '') duplicate_path = find_duplicate_path(path) if duplicate_path && File.exist?(File.join(rails_root, duplicate_path)) |