Skip to content

Commit

Permalink
feat: fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto committed Dec 20, 2024
1 parent ee05187 commit e6db62a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/factories/payments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
provider_payment_id { SecureRandom.uuid }
status { 'pending' }

trait :adyen_payment do
association :payment_provider, factory: :adyen_provider
association :payment_provider_customer, factory: :adyen_customer
end

trait :requires_action do
status { 'requires_action' }
provider_payment_data do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@
let(:payment) do
create(
:payment,
:adyen_payment,
payable: payment_request,
provider_payment_id:,
status: "Pending"
Expand Down

0 comments on commit e6db62a

Please sign in to comment.