BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
19950d60
Commit
19950d60
authored
May 31, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing more broken unscoped tests
parent
73b64f1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
_new_dropdown.haml
app/views/layouts/header/_new_dropdown.haml
+3
-3
admin_groups_spec.rb
spec/features/admin/admin_groups_spec.rb
+3
-1
No files found.
app/views/layouts/header/_new_dropdown.haml
View file @
19950d60
...
...
@@ -3,7 +3,7 @@
=
icon
(
'plus fw'
)
=
icon
(
'caret-down'
)
.dropdown-menu-nav.dropdown-menu-align-right
%ul
%ul
-
if
@group
-
create_group_project
=
can?
(
current_user
,
:create_projects
,
@group
)
-
create_group_subgroup
=
can?
(
current_user
,
:create_subgroup
,
@group
)
...
...
@@ -18,13 +18,13 @@
%li
.divider
%li
.dropdown-bold-header
GitLab
-
if
@project
-
if
@project
&&
@project
.
namespace
-
create_project_issue
=
can?
(
current_user
,
:create_issue
,
@project
)
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
(
current_user
&&
current_user
.
fork_of
(
@project
))
-
create_project_snippet
=
can?
(
current_user
,
:create_project_snippet
,
@project
)
-
if
(
create_project_issue
||
merge_project
||
create_project_snippet
)
%li
.dropdown-bold-header
This project
-
if
create_project_issue
-
if
create_project_issue
%li
=
link_to
'New issue'
,
new_namespace_project_issue_path
(
@project
.
namespace
,
@project
)
-
if
merge_project
...
...
spec/features/admin/admin_groups_spec.rb
View file @
19950d60
...
...
@@ -24,7 +24,9 @@ feature 'Admin Groups', feature: true do
it
'creates new group'
do
visit
admin_groups_path
click_link
"New group"
page
.
within
'#content-body'
do
click_link
"New group"
end
path_component
=
'gitlab'
group_name
=
'GitLab group name'
group_description
=
'Description of group for GitLab'
...
...
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