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
8bf36837
Commit
8bf36837
authored
Sep 16, 2020
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop unused project param from #initialize
parent
1f00f6e6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
ee/lib/gitlab/code_owners/file.rb
ee/lib/gitlab/code_owners/file.rb
+1
-2
ee/lib/gitlab/code_owners/loader.rb
ee/lib/gitlab/code_owners/loader.rb
+1
-1
ee/spec/lib/gitlab/code_owners/file_spec.rb
ee/spec/lib/gitlab/code_owners/file_spec.rb
+2
-0
No files found.
ee/lib/gitlab/code_owners/file.rb
View file @
8bf36837
...
...
@@ -7,9 +7,8 @@ module Gitlab
SECTION_HEADER_REGEX
=
/\[(.*?)\]/
.
freeze
def
initialize
(
blob
,
project
=
nil
)
def
initialize
(
blob
)
@blob
=
blob
@project
=
project
end
def
parsed_data
...
...
ee/lib/gitlab/code_owners/loader.rb
View file @
8bf36837
...
...
@@ -63,7 +63,7 @@ module Gitlab
def
load_code_owners_file
code_owners_blob
=
@project
.
repository
.
code_owners_blob
(
ref:
@ref
)
Gitlab
::
CodeOwners
::
File
.
new
(
code_owners_blob
,
@project
)
Gitlab
::
CodeOwners
::
File
.
new
(
code_owners_blob
)
end
end
end
...
...
ee/spec/lib/gitlab/code_owners/file_spec.rb
View file @
8bf36837
...
...
@@ -5,6 +5,8 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
CodeOwners
::
File
do
include
FakeBlobHelpers
# 'project' is required for the #fake_blob helper
#
let
(
:project
)
{
build
(
:project
)
}
let
(
:file_content
)
do
File
.
read
(
Rails
.
root
.
join
(
'ee'
,
'spec'
,
'fixtures'
,
'codeowners_example'
))
...
...
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