diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-15 09:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-15 09:08:36 +0300 |
commit | e75da32ffd5360a31279e28ecd6060e86a6092b3 (patch) | |
tree | ba131bc0656682ad81301c919e2f096966749128 /tooling/quality/test_level.rb | |
parent | ca520489ffe196b194843851148a3d0a17064957 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling/quality/test_level.rb')
-rw-r--r-- | tooling/quality/test_level.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tooling/quality/test_level.rb b/tooling/quality/test_level.rb index e6945ddb526..d0f2bd0107b 100644 --- a/tooling/quality/test_level.rb +++ b/tooling/quality/test_level.rb @@ -81,10 +81,6 @@ module Quality @regexps[level] ||= Regexp.new("#{prefixes_for_regex}spec/#{folders_regex(level)}").freeze end - def legacy_factories_regexp - @legacy_factories_regexp ||= %r{spec/factories_spec.rb}.freeze - end - def level_for(file_path) case file_path # Detect migration first since some background migration tests are under @@ -100,8 +96,6 @@ module Quality :integration when regexp(:system) :system - when legacy_factories_regexp - :unit else raise UnknownTestLevelError, "Test level for #{file_path} couldn't be set. Please rename the file properly or change the test level detection regexes in #{__FILE__}." end |