Remove leftovers of the date attribute
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 47s
Add copyright notice / copyright_notice (pull_request) Successful in 1m13s
Run unit tests / unit_tests (pull_request) Successful in 1m50s

This commit is contained in:
Manuel Bustillo 2024-12-07 23:43:21 +01:00
parent fdef94be9a
commit 93d907cdc8
2 changed files with 1 additions and 2 deletions

View File

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

View File

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