Files
openfoodnetwork/script/test-stripe-live
Maikel Linke 28309c1910 (Semi-)automatically commit new Stripe recordings
This script is used by a developer whenever the Stripe gem is bumped by
Dependabot. I found myself always doing the same commands and thought
that they could be automated.

I'm not going as far as pushing back to the branch but we might do that
in the future?
2024-02-14 13:54:38 +11:00

13 lines
508 B
Bash
Executable File

#!/usr/bin/env sh
#
# Test Stripe API integration and record new cassettes.
# Requires account details in .env.test.local. You can copy from Bitwarden, or [set up a new Stripe account](https://github.com/openfoodfoundation/openfoodnetwork/wiki/Setting-up-Stripe-on-an-OFN-instance)
set -e # Exit if any command fails
git rm spec/fixtures/vcr_cassettes/Stripe-v* -r
./bin/rspec --tag stripe_version
git add spec/fixtures/vcr_cassettes/Stripe-v*
git commit -m "Update Stripe API recordings for new version"