Open jalcine opened 4 years ago
@jalcine - nice! I've updated the issue body to add some acceptance criteria and sprout a feature definition.
I think this is a pretty big chunk of work (likely exceeding our "4 hour timebox") so I've added the epic label.
As a thank you for taking the time to put this issue together, I've transferred you 20 points from my personal patronage account balance. These points are worthless for now, but may be redeemed for a share of the profits generated by Zinc (you know, once we have them :)).
@jalcine - Do you think this is kind of where you want this to be headed: https://github.com/zinc-collective/compensated/pull/72
The goal here is to make it possible for you to generate events from any of the payment processors we support and throw them at a compensated-proxy or a ruby project that is using the compensated gem so you can programmatically test scenarios without having to assemble the fixtures yourself.
Thoughts?
@jalcine - Do you think this is kind of where you want this to be headed: #72
The goal here is to make it possible for you to generate events from any of the payment processors we support and throw them at a compensated-proxy or a ruby project that is using the compensated gem so you can programmatically test scenarios without having to assemble the fixtures yourself.
This satisfies the needs I'll have when wanting to incorporate Compensated!
Currently, the core
compensated
library holds a lot of useful code around the fixtures for testing responses from Stripe and Apple Pay. Moving them into a separate library (ideallycompensated-spec
) will allow any other Compensated gem to use them and share changes upstream. This can be also be used by other projects that want to test how Compensated responds to particular events.Feature Definition
This Issue May Be Closed When
compensated-spec
module that is packaged as it's own gem.compensated-spec
to test their integration.compensated-ruby
usescompensated-spec
for all its fixturesspec/stripe
- https://github.com/zinc-collective/compensated/pull/83/spec/apple_iap
- https://github.com/zinc-collective/compensated/pull/84spec/gumroad
compensated-proxy
usescompensated-spec
for all its fixtures - https://github.com/zinc-collective/compensated/pull/83/compensated-rails
usescompensated-spec
for all its fixturesCHANGELOG.md
to indicate this new feature.compensated-spec
and published it atwww.zinc.coop/compensated/testing-your-integration