25 lines
463 B
Ruby
Raw Normal View History

2025-01-13 20:38:47 +00:00
# Copyright (C) 2024 Manuel Bustillo
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
2024-12-28 16:31:27 +00:00
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
2024-10-31 23:34:15 +00:00
# frozen_string_literal: true
2024-10-28 22:38:47 +01:00
FactoryBot.define do
factory :expense do
wedding
sequence(:name) { |i| "Expense #{i}" }
pricing_type { 'fixed' }
amount { 100 }
end
2024-10-28 22:38:47 +01:00
trait :fixed do
pricing_type { 'fixed' }
end
2024-10-28 22:38:47 +01:00
trait :per_person do
pricing_type { 'per_person' }
2024-10-28 22:38:47 +01:00
end
end