Refine registration endpoint #165

Merged
bustikiller merged 7 commits from remove-wedding-date into main 2024-12-07 22:45:16 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 93d907cdc8 - Show all commits

View File

@ -11,7 +11,7 @@ ActsAsTenant.without_tenant do
Wedding.delete_all Wedding.delete_all
end end
wedding = Wedding.create!(slug: :default, date: 1.year.from_now) wedding = Wedding.create!(slug: :default)
ActsAsTenant.with_tenant(wedding) do ActsAsTenant.with_tenant(wedding) do
Expense.create!(name: 'Photographer', amount: 3000, pricing_type: 'fixed') Expense.create!(name: 'Photographer', amount: 3000, pricing_type: 'fixed')

View File

@ -3,6 +3,5 @@
FactoryBot.define do FactoryBot.define do
factory :wedding do factory :wedding do
sequence(:slug) { |i| "wedding-#{i}" } sequence(:slug) { |i| "wedding-#{i}" }
date { 1.year.from_now }
end end
end end