[Purchase] Reduce the number of specs using VCR
Proposal
Original issue: #7342 (closed)
This issue tracks efforts to reduce the number of VCRs used in non-feature tests.
The table below shows the folders in spec/fixtures/vcr_cassettes
which have recorded cassettes for non-feature tests and the spec file related to it. The goal is to add stubbing to spec files mentioned below so that the related VCR folder can be removed. In the end, only feature tests should be using VCR cassettes.
VCR cassette folders | Related spec file |
---|---|
payment_forms |
spec/controllers/payment_forms_controller_spec.rb |
plansfinder |
spec/finders/community_programs/plan_finder_spec.rb |
resolvers_invoicepreview |
spec/requests/graphql/invoice_preview_spec.rb |
resolvers_namespaceeligibilityresolver |
spec/requests/graphql/namespace_eligibility_spec.rb |
selfservice_purchaseservice |
spec/services/self_service/purchase_service_spec.rb |
zuora_orders_previewservice |
spec/services/zuora/orders/preview_service_spec.rb |
zuora_promocodes_client |
spec/lib/zuora/promo_codes/client_spec.rb |
zuora_promocodes_consume |
spec/services/zuora/promo_codes/consume_spec.rb |
zuora_promocodes_validate |
spec/services/zuora/promo_codes/validate_spec.rb |
zuora_promocodes_validatewithattemptlimiting |
spec/services/zuora/promo_codes/validate_with_attempt_limiting_spec.rb |