Files
grecia/spec/factories/organizations.rb
Javi Martín fc1a89e966 Use dynamic attributes in factories
Static attributes are deprecated since factory bot 4.11; we haven't
upgraded yet but now we're ready to do so:

https://thoughtbot.com/blog/deprecating-static-attributes-in-factory_bot-4-11
2019-08-07 19:43:57 +02:00

16 lines
278 B
Ruby

FactoryBot.define do
factory :organization do
user
responsible_name { "Johnny Utah" }
sequence(:name) { |n| "org#{n}" }
trait :verified do
verified_at { Time.current }
end
trait :rejected do
rejected_at { Time.current }
end
end
end