summaryrefslogtreecommitdiff
path: root/spec/models/member_spec.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-10-03 10:01:02 +0200
committerRémy Coutable <remy@rymai.me>2016-10-03 10:06:40 +0200
commit72da67485ff7ca430d8f09b7d7f28b4f54d33215 (patch)
tree7752bbdb8be5f8f2c6d9f2908c0f4e10b8317dd1 /spec/models/member_spec.rb
parentf2c0f8237124d2dc539120bd77f301f216453cb7 (diff)
downloadgitlab-ce-72da67485ff7ca430d8f09b7d7f28b4f54d33215.tar.gz
Members::RequestAccessService is tricter on permissions
Fortunately, only specs needed to be fixed, so that's good! Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/models/member_spec.rb')
-rw-r--r--spec/models/member_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/member_spec.rb b/spec/models/member_spec.rb
index bda23eaed43..485121701af 100644
--- a/spec/models/member_spec.rb
+++ b/spec/models/member_spec.rb
@@ -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) }
+ let!(:source) { create(source_type, :public) }
let!(:user) { create(:user) }
let!(:admin) { create(:admin) }