houdini/spec/factories/supporters.rb

15 lines
366 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
FactoryBot.define do
factory :supporter do
name { 'Fake Supporter Name' }
2020-04-17 19:02:07 +00:00
nonprofit_id { 55352 }
trait :has_a_card do
after(:create) do |supporter|
create(:active_card_1, holder: supporter)
end
end
end
end