2018-05-11 14:59:20 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :virus_scan do
|
2019-02-20 14:08:53 +01:00
|
|
|
add_attribute(:status) { VirusScan.statuses.fetch(:pending) }
|
|
|
|
|
|
|
|
trait :pending do
|
|
|
|
add_attribute(:status) { VirusScan.statuses.fetch(:pending) }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :safe do
|
|
|
|
add_attribute(:status) { VirusScan.statuses.fetch(:safe) }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :infected do
|
|
|
|
add_attribute(:status) { VirusScan.statuses.fetch(:infected) }
|
|
|
|
end
|
2018-05-11 14:59:20 +02:00
|
|
|
end
|
|
|
|
end
|