mollie / spree-mollie-gateway

Mollie payments for Spree Commerce.
https://www.mollie.com
16 stars 23 forks source link

Mock Mollie API requests in RSpec when Travis job is triggered by PR #26

Open vernondegoede opened 6 years ago

vernondegoede commented 6 years ago

We should Mock the Mollie API calls when the Travis job is triggered by a PR by an external maintainer. Since our API key is encrypted, integrations tests will always fail because the encrypted environment variables are not available from external sources (PR's initiated by external collaborators).

More information: https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions