Files
nairobi/spec/factories/machine_learning.rb
Javi Martín 614b4fbe4c Add and apply FactoryBot/AssociationStyle rule
This rule was added in rubocop-factory_bot 2.23.0. We were following it
sometimes, and sometimes we were not.
2023-09-08 13:52:54 +02:00

20 lines
401 B
Ruby

FactoryBot.define do
factory :machine_learning_job do
user
script { "script.py" }
started_at { Time.current }
finished_at { nil }
error { nil }
end
factory :machine_learning_info do
kind { "tags" }
generated_at { Time.current }
script { "script.py" }
end
factory :ml_summary_comment do
body { "Summary comment generated by Machine Learning" }
end
end