Skip to content
Snippets Groups Projects
Verified Commit 396941fa authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Reolve conflicts


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 14f11751
No related branches found
No related tags found
No related merge requests found
<<<<<<< HEAD
The GitLab Enterprise Edition (EE) license (the “EE License”)
Copyright (c) 2011-2016 GitLab B.V.
=======
Copyright (c) 2011-2017 GitLab B.V.
>>>>>>> ce/master
 
This software and associated documentation files (the "Software") may only be
used if you (and any entity that you represent) have agreed to, and are in
Loading
Loading
Loading
Loading
@@ -69,19 +69,12 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
 
def access_levels_options
{
<<<<<<< HEAD
push_access_levels: ProtectedBranch::PushAccessLevel.human_access_levels.map { |id, text| { id: id, text: text } },
merge_access_levels: ProtectedBranch::MergeAccessLevel.human_access_levels.map { |id, text| { id: id, text: text } },
selected_merge_access_levels: @protected_branch.merge_access_levels.map { |access_level| access_level.user_id || access_level.access_level },
selected_push_access_levels: @protected_branch.push_access_levels.map { |access_level| access_level.user_id || access_level.access_level }
=======
push_access_levels: {
"Roles" => ProtectedBranch::PushAccessLevel.human_access_levels.map { |id, text| { id: id, text: text, before_divider: true } },
},
merge_access_levels: {
"Roles" => ProtectedBranch::MergeAccessLevel.human_access_levels.map { |id, text| { id: id, text: text, before_divider: true } }
}
>>>>>>> ce/master
}
end
 
Loading
Loading
Loading
Loading
@@ -10,11 +10,6 @@
.blob-result
.file-holder
.js-file-title.file-title
<<<<<<< HEAD
=======
- ref = @search_results.repository_ref
- blob_link = namespace_project_blob_path(@project.namespace, @project, tree_join(ref, file_name))
>>>>>>> ce/master
= link_to blob_link do
= icon('fa-file')
%strong
Loading
Loading
Loading
Loading
@@ -36,20 +36,21 @@ describe API::Groups, api: true do
expect(response).to have_http_status(200)
expect(json_response).to be_an Array
expect(json_response.length).to eq(1)
<<<<<<< HEAD
expect(json_response.first['name']).to eq(group1.name)
expect(json_response.first['ldap_cn']).to eq(group1.ldap_cn)
expect(json_response.first['ldap_access']).to eq(group1.ldap_access)
ldap_group_link = json_response.first['ldap_group_links'].first
expect(ldap_group_link['cn']).to eq(group1.ldap_cn)
expect(ldap_group_link['group_access']).to eq(group1.ldap_access)
expect(ldap_group_link['provider']).to eq('ldap')
=======
expect(json_response)
.to satisfy_one { |group| group['name'] == group1.name }
>>>>>>> ce/master
expect(json_response)
.to satisfy_one { |group| group['ldap_cn'] == group1.ldap_cn }
expect(json_response)
.to satisfy_one { |group| group['ldap_access'] == group1.ldap_access }
expect(json_response).to satisfy_one do |group|
ldap_group_link = group['ldap_group_links'].first
ldap_group_link['cn'] == group1.ldap_cn &&
ldap_group_link['group_access'] == group1.ldap_access &&
ldap_group_link['provider'] == 'ldap'
end
end
 
it "does not include statistics" do
Loading
Loading
@@ -92,12 +93,8 @@ describe API::Groups, api: true do
 
expect(response).to have_http_status(200)
expect(json_response).to be_an Array
<<<<<<< HEAD
expect(json_response.find { |r| r['id'] == group1.id }['statistics']).to eq attributes.stringify_keys
=======
expect(json_response)
.to satisfy_one { |group| group['statistics'] == attributes }
>>>>>>> ce/master
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment