summaryrefslogtreecommitdiff
path: root/spec/factories/timelogs.rb
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/factories/timelogs.rb
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/factories/timelogs.rb')
-rw-r--r--spec/factories/timelogs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/factories/timelogs.rb b/spec/factories/timelogs.rb
index af34b0681e2..b45f06b9a0a 100644
--- a/spec/factories/timelogs.rb
+++ b/spec/factories/timelogs.rb
@@ -3,7 +3,7 @@
FactoryBot.define do
factory :timelog do
time_spent 3600
- user
issue
+ user { issue.project.creator }
end
end