Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5785a22d
Commit
5785a22d
authored
Nov 19, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tooling: Add test for TestLevel#level_for with no prefix for an EE-file
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
bbfddf81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
spec/lib/quality/test_level_spec.rb
spec/lib/quality/test_level_spec.rb
+4
-0
No files found.
spec/lib/quality/test_level_spec.rb
View file @
5785a22d
...
...
@@ -174,6 +174,10 @@ RSpec.describe Quality::TestLevel do
expect
(
subject
.
level_for
(
'spec/lib/gitlab/background_migration/archive_legacy_traces_spec.rb'
)).
to
eq
(
:migration
)
end
it
'returns the correct level for an EE file without passing a prefix'
do
expect
(
subject
.
level_for
(
'ee/spec/migrations/geo/migrate_ci_job_artifacts_to_separate_registry_spec.rb'
)).
to
eq
(
:migration
)
end
it
'returns the correct level for a geo migration test'
do
expect
(
described_class
.
new
(
'ee/'
).
level_for
(
'ee/spec/migrations/geo/migrate_ci_job_artifacts_to_separate_registry_spec.rb'
)).
to
eq
(
:migration
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment