mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
16 lines
315 B
Ruby
16 lines
315 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :ticket_purchase do
|
|
user
|
|
conference
|
|
ticket
|
|
quantity { 10 }
|
|
factory :paid_ticket_purchase do
|
|
after(:build) do |ticket_purchase|
|
|
payment = create(:payment)
|
|
ticket_purchase.pay(payment)
|
|
end
|
|
end
|
|
end
|
|
end
|