Maintenance: Fixed random error in time accountings test because of invalid 0 value for column time_unit (which is not allowed).

This commit is contained in:
Rolf Schmidt 2020-10-30 15:18:40 +01:00
parent 40c3e68924
commit f305b70c95

View file

@ -1,7 +1,7 @@
FactoryBot.define do
factory :'ticket/time_accounting', aliases: %i[ticket_time_accounting] do
ticket
time_unit { rand(100) }
time_unit { rand(1..100) }
created_by_id { 1 }
trait :for_article do