Commit c61d598b authored by Tim Zallmann's avatar Tim Zallmann

Fixing more broken unscoped tests

parent 33748960
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= icon('plus fw') = icon('plus fw')
= icon('caret-down') = icon('caret-down')
.dropdown-menu-nav.dropdown-menu-align-right .dropdown-menu-nav.dropdown-menu-align-right
%ul %ul
- if @group - if @group
- create_group_project = can?(current_user, :create_projects, @group) - create_group_project = can?(current_user, :create_projects, @group)
- create_group_subgroup = can?(current_user, :create_subgroup, @group) - create_group_subgroup = can?(current_user, :create_subgroup, @group)
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
%li.divider %li.divider
%li.dropdown-bold-header GitLab %li.dropdown-bold-header GitLab
- if @project - if @project && @project.namespace
- create_project_issue = can?(current_user, :create_issue, @project) - 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)) - 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) - create_project_snippet = can?(current_user, :create_project_snippet, @project)
- if (create_project_issue || merge_project || create_project_snippet) - if (create_project_issue || merge_project || create_project_snippet)
%li.dropdown-bold-header This project %li.dropdown-bold-header This project
- if create_project_issue - if create_project_issue
%li %li
= link_to 'New issue', new_namespace_project_issue_path(@project.namespace, @project) = link_to 'New issue', new_namespace_project_issue_path(@project.namespace, @project)
- if merge_project - if merge_project
......
...@@ -24,7 +24,9 @@ feature 'Admin Groups', feature: true do ...@@ -24,7 +24,9 @@ feature 'Admin Groups', feature: true do
it 'creates new group' do it 'creates new group' do
visit admin_groups_path visit admin_groups_path
click_link "New group" page.within '#content-body' do
click_link "New group"
end
path_component = 'gitlab' path_component = 'gitlab'
group_name = 'GitLab group name' group_name = 'GitLab group name'
group_description = 'Description of group for GitLab' group_description = 'Description of group for GitLab'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment