gitlab-org--gitlab-foss/spec/factories/timelogs.rb
Rémy Coutable a2718ebaff Make user/author use project.creator in most factories
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-31 18:31:21 +01:00

9 lines
187 B
Ruby

# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :timelog do
time_spent 3600
issue
user { issue.project.creator }
end
end