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
08e322a6
Commit
08e322a6
authored
May 14, 2020
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve naming of shared example
parent
2aec8aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/spec/lib/gitlab/code_owners/file_spec.rb
ee/spec/lib/gitlab/code_owners/file_spec.rb
+3
-3
No files found.
ee/spec/lib/gitlab/code_owners/file_spec.rb
View file @
08e322a6
...
@@ -59,7 +59,7 @@ describe Gitlab::CodeOwners::File do
...
@@ -59,7 +59,7 @@ describe Gitlab::CodeOwners::File do
stub_feature_flags
(
sectional_codeowners:
true
)
stub_feature_flags
(
sectional_codeowners:
true
)
end
end
shared_examples_for
"creates expected parsed results"
do
shared_examples_for
"creates expected parsed
sectional
results"
do
it
"is a hash sorted by sections without duplicates"
do
it
"is a hash sorted by sections without duplicates"
do
data
=
file
.
parsed_data
data
=
file
.
parsed_data
...
@@ -117,7 +117,7 @@ describe Gitlab::CodeOwners::File do
...
@@ -117,7 +117,7 @@ describe Gitlab::CodeOwners::File do
File
.
read
(
Rails
.
root
.
join
(
"ee"
,
"spec"
,
"fixtures"
,
"sectional_codeowners_example"
))
File
.
read
(
Rails
.
root
.
join
(
"ee"
,
"spec"
,
"fixtures"
,
"sectional_codeowners_example"
))
end
end
it_behaves_like
"creates expected parsed results"
it_behaves_like
"creates expected parsed
sectional
results"
end
end
context
"when CODEOWNERS file contains multiple sections with mixed-case names"
do
context
"when CODEOWNERS file contains multiple sections with mixed-case names"
do
...
@@ -125,7 +125,7 @@ describe Gitlab::CodeOwners::File do
...
@@ -125,7 +125,7 @@ describe Gitlab::CodeOwners::File do
File
.
read
(
Rails
.
root
.
join
(
"ee"
,
"spec"
,
"fixtures"
,
"mixed_case_sectional_codeowners_example"
))
File
.
read
(
Rails
.
root
.
join
(
"ee"
,
"spec"
,
"fixtures"
,
"mixed_case_sectional_codeowners_example"
))
end
end
it_behaves_like
"creates expected parsed results"
it_behaves_like
"creates expected parsed
sectional
results"
end
end
end
end
end
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