15 lines
423 B
Ruby
15 lines
423 B
Ruby
# frozen_string_literal: true
|
|
|
|
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
|
|
FactoryBot.define do
|
|
factory :supporter do
|
|
name { 'Fake Supporter Name' }
|
|
nonprofit_id { 55352 }
|
|
trait :has_a_card do
|
|
after(:create) do |supporter|
|
|
create(:active_card_1, holder: supporter)
|
|
end
|
|
end
|
|
end
|
|
end
|