You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to move spec/support/solidus_stripe/webhook/event_with_context_factory to lib/solidus_stripe/testing_support/factories ?
When adding tests to my app for some stripe events (either if overwritting or adding new events handlers), it would be great if I could use the class SolidusStripe::Webhook::EventWithContextFactory that makes tests for subscribers really easy to write.
The only solution I found for now: (taken from here)
@loicginoux right now that file would be copied to the target app upon installation, but maybe there's a case for moving it to lib/ as you suggested. Alternatively we could maybe make the installer have an option for installing specific parts, like just the specs and so on. Thoughts?
elia
changed the title
make accessible EventWithContextFactory publicly
Make EventWithContextFactory publicly accessible
Apr 5, 2023
@elia, if I'm not wrong, the file won't be copied unless the private specs=all option is given during installation. Moving it to the lib/ folder probably makes sense.
Would it be possible to move
spec/support/solidus_stripe/webhook/event_with_context_factory
tolib/solidus_stripe/testing_support/factories
?When adding tests to my app for some stripe events (either if overwritting or adding new events handlers), it would be great if I could use the class
SolidusStripe::Webhook::EventWithContextFactory
that makes tests for subscribers really easy to write.The only solution I found for now: (taken from here)
The text was updated successfully, but these errors were encountered: