Manuel Bustillo
7c0a525c64
Some checks failed
Add copyright notice / copyright_notice (pull_request) Successful in 1m41s
Run unit tests / unit_tests (pull_request) Successful in 6m7s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 48m54s
Run unit tests / unit_tests (push) Successful in 2m24s
Build Nginx-based docker image / build-static-assets (push) Has been cancelled
18 lines
326 B
Ruby
18 lines
326 B
Ruby
# Copyright (C) 2024 Manuel Bustillo
|
|
|
|
FactoryBot.define do
|
|
factory :expense do
|
|
sequence(:name) { |i| "Expense #{i}" }
|
|
pricing_type { "fixed" }
|
|
amount { 100 }
|
|
end
|
|
|
|
trait :fixed do
|
|
pricing_type { "fixed" }
|
|
end
|
|
|
|
trait :per_person do
|
|
pricing_type { "per_person" }
|
|
end
|
|
end
|
|
|