summaryrefslogtreecommitdiff
path: root/spec/models/member_spec.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2016-11-11 12:51:50 +0000
committerNick Thomas <nick@gitlab.com>2016-11-11 15:45:47 +0000
commitd211011698016bd4f04bc32e7450d6df470ea0c2 (patch)
treebf6a1309c933dbff7c1c16ee3ee6ee199d8bffbd /spec/models/member_spec.rb
parent64d2eff9ccf716395d101f2ac91db44c47d7394e (diff)
downloadgitlab-ce-d211011698016bd4f04bc32e7450d6df470ea0c2.tar.gz
Make access request specs explicitly enable or disable access requests as required
Diffstat (limited to 'spec/models/member_spec.rb')
-rw-r--r--spec/models/member_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/member_spec.rb b/spec/models/member_spec.rb
index 485121701af..12419d6fd5a 100644
--- a/spec/models/member_spec.rb
+++ b/spec/models/member_spec.rb
@@ -57,7 +57,7 @@ describe Member, models: true do
describe 'Scopes & finders' do
before do
- project = create(:empty_project, :public)
+ project = create(:empty_project, :public, :access_requestable)
group = create(:group)
@owner_user = create(:user).tap { |u| group.add_owner(u) }
@owner = group.members.find_by(user_id: @owner_user.id)
@@ -174,7 +174,7 @@ describe Member, models: true do
describe '.add_user' do
%w[project group].each do |source_type|
context "when source is a #{source_type}" do
- let!(:source) { create(source_type, :public) }
+ let!(:source) { create(source_type, :public, :access_requestable) }
let!(:user) { create(:user) }
let!(:admin) { create(:admin) }