summaryrefslogtreecommitdiff
path: root/spec/policies
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-08-04 19:14:04 +0200
committerRémy Coutable <remy@rymai.me>2018-01-31 18:31:21 +0100
commita2718ebaffd431b1eec91f3ee467d9632309b5f2 (patch)
treecb9953a334be6f4e026d1ed35ef57130b731d7e3 /spec/policies
parent9c34c023808b38303d4988a20f62645c552951e3 (diff)
downloadgitlab-ce-a2718ebaffd431b1eec91f3ee467d9632309b5f2.tar.gz
Make user/author use project.creator in most factories
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/project_policy_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/policies/project_policy_spec.rb b/spec/policies/project_policy_spec.rb
index f2593a1a75c..129344f105f 100644
--- a/spec/policies/project_policy_spec.rb
+++ b/spec/policies/project_policy_spec.rb
@@ -92,7 +92,7 @@ describe ProjectPolicy do
it 'does not include the read_issue permission when the issue author is not a member of the private project' do
project = create(:project, :private)
- issue = create(:issue, project: project)
+ issue = create(:issue, project: project, author: create(:user))
user = issue.author
expect(project.team.member?(issue.author)).to be false