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
85b48074
Commit
85b48074
authored
Jul 31, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
0f1fbc0e
fff0fc7b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
lib/gitlab/danger/teammate.rb
lib/gitlab/danger/teammate.rb
+1
-1
spec/controllers/projects/error_tracking_controller_spec.rb
spec/controllers/projects/error_tracking_controller_spec.rb
+1
-1
spec/features/display_system_header_and_footer_bar_spec.rb
spec/features/display_system_header_and_footer_bar_spec.rb
+1
-1
spec/lib/gitlab/danger/teammate_spec.rb
spec/lib/gitlab/danger/teammate_spec.rb
+8
-0
No files found.
lib/gitlab/danger/teammate.rb
View file @
85b48074
...
...
@@ -39,7 +39,7 @@ module Gitlab
def
has_capability?
(
project
,
category
,
kind
,
labels
)
case
category
when
:test
area
=
role
[
/Test Automation Engineer
, (\w+
)/
,
1
]
area
=
role
[
/Test Automation Engineer
(?:.*?, (\w+)
)/
,
1
]
area
&&
labels
.
any?
(
area
)
if
kind
==
:reviewer
else
...
...
spec/controllers/projects/error_tracking_controller_spec.rb
View file @
85b48074
# frozen_string_literal: true
require
'
rails
_helper'
require
'
spec
_helper'
describe
Projects
::
ErrorTrackingController
do
set
(
:project
)
{
create
(
:project
)
}
...
...
spec/features/display_system_header_and_footer_bar_spec.rb
View file @
85b48074
# frozen_string_literal: true
require
'
rails
_helper'
require
'
spec
_helper'
describe
'Display system header and footer bar'
do
let
(
:header_message
)
{
"Foo"
}
...
...
spec/lib/gitlab/danger/teammate_spec.rb
View file @
85b48074
...
...
@@ -40,6 +40,14 @@ describe Gitlab::Danger::Teammate do
it
'#maintainer? returns false'
do
expect
(
subject
.
maintainer?
(
project
,
:test
,
labels
)).
to
be_falsey
end
context
'when hyperlink is mangled in the role'
do
let
(
:role
)
{
'<a href="#">Test Automation Engineer</a>, Create'
}
it
'#reviewer? returns true'
do
expect
(
subject
.
reviewer?
(
project
,
:test
,
labels
)).
to
be_truthy
end
end
end
context
'when role is Test Automation Engineer, Manage'
do
...
...
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