Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Wrap factory in VCR cassette
Browse files Browse the repository at this point in the history
  • Loading branch information
vincemtnz committed Dec 20, 2018
1 parent 3d50bec commit 700d4bb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions spec/requests/api/stateless/go_cardless/subscriptions_spec.rb
Expand Up @@ -49,14 +49,16 @@
cancelled_at: last_month)
end
let!(:transaction) do
create(:payment_go_cardless_transaction,
subscription: subscription,
customer: customer,
go_cardless_id: 999,
amount: 4,
currency: 'GBP',
charge_date: Date.tomorrow,
payment_method: payment_method)
VCR.use_cassette('money_from_oxr') do
create :payment_go_cardless_transaction,
subscription: subscription,
customer: customer,
go_cardless_id: 999,
amount: 4,
currency: 'GBP',
charge_date: Date.tomorrow,
payment_method: payment_method
end
end

before :each do
Expand Down

0 comments on commit 700d4bb

Please sign in to comment.