Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2019-04-05 16:02:56 +0300
committerAndreas Brandl <abrandl@gitlab.com>2019-04-05 16:02:56 +0300
commit46b1b9c1d61c269588bd3cd4203420608ddd7f0b (patch)
treea877f5366d3367e1264e96f3f5e8a4b23bdbd62a /spec/serializers/group_child_entity_spec.rb
parent7a48a06cf3b454021aa466464686fee8c82d6862 (diff)
Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"
This reverts merge request !26823
Diffstat (limited to 'spec/serializers/group_child_entity_spec.rb')
-rw-r--r--spec/serializers/group_child_entity_spec.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/serializers/group_child_entity_spec.rb b/spec/serializers/group_child_entity_spec.rb
index b58d95ccb43..d02b4c554b1 100644
--- a/spec/serializers/group_child_entity_spec.rb
+++ b/spec/serializers/group_child_entity_spec.rb
@@ -1,7 +1,6 @@
require 'spec_helper'
describe GroupChildEntity do
- include ExternalAuthorizationServiceHelpers
include Gitlab::Routing.url_helpers
let(:user) { create(:user) }
@@ -110,22 +109,4 @@ describe GroupChildEntity do
it_behaves_like 'group child json'
end
-
- describe 'for a project with external authorization enabled' do
- let(:object) do
- create(:project, :with_avatar,
- description: 'Awesomeness')
- end
-
- before do
- enable_external_authorization_service_check
- object.add_maintainer(user)
- end
-
- it 'does not hit the external authorization service' do
- expect(::Gitlab::ExternalAuthorization).not_to receive(:access_allowed?)
-
- expect(json[:can_edit]).to eq(false)
- end
- end
end