From 1c40b6bd02ccbacfc89019caf83bb35b245f19f0 Mon Sep 17 00:00:00 2001 From: Danilo Martins Date: Fri, 16 Feb 2024 10:04:08 -0300 Subject: [PATCH] fix/remove factory do billing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit não está sendo utilizado coloca time.zone.now na factory de subscription --- spec/factories/billings.rb | 7 ------- spec/factories/subscriptions.rb | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 spec/factories/billings.rb diff --git a/spec/factories/billings.rb b/spec/factories/billings.rb deleted file mode 100644 index 0700f35..0000000 --- a/spec/factories/billings.rb +++ /dev/null @@ -1,7 +0,0 @@ -FactoryBot.define do - factory :billing do - subscription { nil } - billing_date { '2024-02-15' } - amount { '19.90' } - end -end diff --git a/spec/factories/subscriptions.rb b/spec/factories/subscriptions.rb index 4363892..4c25c48 100644 --- a/spec/factories/subscriptions.rb +++ b/spec/factories/subscriptions.rb @@ -1,7 +1,7 @@ FactoryBot.define do factory :subscription do user - start_date { '2024-02-15' } + start_date { Time.zone.now.to_date } status { 0 } end end