Commit b5b96f30 authored by Albert Salim's avatar Albert Salim

Ensure count is > 0

The model validates that count is > 0.
Having a possible 0 in the factory would
create an invalid record.
parent e1e0b3d5
......@@ -4,6 +4,6 @@ FactoryBot.define do
factory :ci_platform_metric do
recorded_at { Time.zone.now }
platform_target { generate(:title) }
count { SecureRandom.random_number(100) }
count { SecureRandom.random_number(100) + 1 }
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment