diff options
author | Nick Thomas <nick@gitlab.com> | 2016-11-11 12:51:50 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2016-11-11 15:45:47 +0000 |
commit | d211011698016bd4f04bc32e7450d6df470ea0c2 (patch) | |
tree | bf6a1309c933dbff7c1c16ee3ee6ee199d8bffbd /spec/services/members/approve_access_request_service_spec.rb | |
parent | 64d2eff9ccf716395d101f2ac91db44c47d7394e (diff) | |
download | gitlab-ce-d211011698016bd4f04bc32e7450d6df470ea0c2.tar.gz |
Make access request specs explicitly enable or disable access requests as required
Diffstat (limited to 'spec/services/members/approve_access_request_service_spec.rb')
-rw-r--r-- | spec/services/members/approve_access_request_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/members/approve_access_request_service_spec.rb b/spec/services/members/approve_access_request_service_spec.rb index 7b090343a3e..7d5a66801db 100644 --- a/spec/services/members/approve_access_request_service_spec.rb +++ b/spec/services/members/approve_access_request_service_spec.rb @@ -3,8 +3,8 @@ require 'spec_helper' describe Members::ApproveAccessRequestService, services: true do let(:user) { create(:user) } let(:access_requester) { create(:user) } - let(:project) { create(:project, :public) } - let(:group) { create(:group, :public) } + let(:project) { create(:empty_project, :public, :access_requestable) } + let(:group) { create(:group, :public, :access_requestable) } let(:opts) { {} } shared_examples 'a service raising ActiveRecord::RecordNotFound' do |