diff options
author | Rémy Coutable <remy@rymai.me> | 2017-08-04 19:14:04 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-01-31 18:31:21 +0100 |
commit | a2718ebaffd431b1eec91f3ee467d9632309b5f2 (patch) | |
tree | cb9953a334be6f4e026d1ed35ef57130b731d7e3 /spec/policies | |
parent | 9c34c023808b38303d4988a20f62645c552951e3 (diff) | |
download | gitlab-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.rb | 2 |
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 |