Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-15 09:08:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-15 09:08:36 +0300
commite75da32ffd5360a31279e28ecd6060e86a6092b3 (patch)
treeba131bc0656682ad81301c919e2f096966749128 /tooling/quality/test_level.rb
parentca520489ffe196b194843851148a3d0a17064957 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling/quality/test_level.rb')
-rw-r--r--tooling/quality/test_level.rb6
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