Commit c08a3bb1 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Resolve CE/EE merging conflicts

Resolved for:
- lib/api/namespaces.rb
- spec/policies/namespace_policy_spec.rb
- spec/requests/api/namespaces_spec.rb
parent 5a22d8b8
...@@ -20,7 +20,6 @@ module API ...@@ -20,7 +20,6 @@ module API
present paginate(namespaces), with: Entities::Namespace, current_user: current_user present paginate(namespaces), with: Entities::Namespace, current_user: current_user
end end
<<<<<<< HEAD
desc 'Update a namespace' do desc 'Update a namespace' do
success Entities::Namespace success Entities::Namespace
end end
...@@ -42,8 +41,6 @@ module API ...@@ -42,8 +41,6 @@ module API
end end
end end
=======
>>>>>>> c26d7089d058dc22116f383815da8cec80a99ac5
desc 'Get a namespace by ID' do desc 'Get a namespace by ID' do
success Entities::Namespace success Entities::Namespace
end end
......
...@@ -3,10 +3,7 @@ require 'spec_helper' ...@@ -3,10 +3,7 @@ require 'spec_helper'
describe NamespacePolicy do describe NamespacePolicy do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:owner) { create(:user) } let(:owner) { create(:user) }
<<<<<<< HEAD
let(:auditor) { create(:user, :auditor) } let(:auditor) { create(:user, :auditor) }
=======
>>>>>>> c26d7089d058dc22116f383815da8cec80a99ac5
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
let(:namespace) { create(:namespace, owner: owner) } let(:namespace) { create(:namespace, owner: owner) }
...@@ -30,7 +27,6 @@ describe NamespacePolicy do ...@@ -30,7 +27,6 @@ describe NamespacePolicy do
let(:current_user) { owner } let(:current_user) { owner }
it { is_expected.to be_allowed(*owner_permissions) } it { is_expected.to be_allowed(*owner_permissions) }
<<<<<<< HEAD
context 'user who has exceeded project limit' do context 'user who has exceeded project limit' do
let(:owner) { create(:user, projects_limit: 0) } let(:owner) { create(:user, projects_limit: 0) }
...@@ -47,11 +43,6 @@ describe NamespacePolicy do ...@@ -47,11 +43,6 @@ describe NamespacePolicy do
it { is_expected.to be_allowed(*owner_permissions) } it { is_expected.to be_allowed(*owner_permissions) }
end end
=======
context 'user who has exceeded project limit' do
let(:owner) { create(:user, projects_limit: 0) }
>>>>>>> c26d7089d058dc22116f383815da8cec80a99ac5
context 'non-owner' do context 'non-owner' do
it { is_expected.to be_disallowed(*owner_permissions) } it { is_expected.to be_disallowed(*owner_permissions) }
......
...@@ -94,7 +94,6 @@ describe API::Namespaces do ...@@ -94,7 +94,6 @@ describe API::Namespaces do
end end
end end
<<<<<<< HEAD
describe 'PUT /namespaces/:id' do describe 'PUT /namespaces/:id' do
context 'when authenticated as admin' do context 'when authenticated as admin' do
it 'updates namespace using full_path' do it 'updates namespace using full_path' do
...@@ -141,8 +140,6 @@ describe API::Namespaces do ...@@ -141,8 +140,6 @@ describe API::Namespaces do
end end
end end
=======
>>>>>>> c26d7089d058dc22116f383815da8cec80a99ac5
describe 'GET /namespaces/:id' do describe 'GET /namespaces/:id' do
let(:owned_group) { group1 } let(:owned_group) { group1 }
let(:user2) { create(:user) } let(:user2) { create(:user) }
......
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