This rule was added in rubocop-factory_bot 2.23.0. We were following it sometimes, and sometimes we were not.
20 lines
401 B
Ruby
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
|