Skip to content

Instantly share code, notes, and snippets.

@adam12

adam12/monkey_patch.rb Secret

Created Sep 10, 2019
Embed
What would you like to do?
# Inside your test
def test_do_sign_up__valid_with_customer_sca_required
module Integrations::Stripe
def self.create_or_end_trial_on_subscription(*)
subscription = super
subscription.define_singleton_method(:status) { "incomplete" }
subscription
end
end
# .. rest of test
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.