lib/fake_stripe.rb in fake_stripe-0.2.0 vs lib/fake_stripe.rb in fake_stripe-0.3.0
- old
+ new
@@ -1,9 +1,10 @@
require 'fake_stripe/configuration'
require 'fake_stripe/initializers/webmock'
require 'fake_stripe/stub_app'
require 'fake_stripe/stub_stripe_js'
+require 'fake_stripe/stub_stripe_connect'
module FakeStripe
extend Configuration
VALID_CARD_NUMBER = '4242424242424242'
@@ -31,10 +32,12 @@
def self.stub_stripe
Stripe.api_key = 'FAKE_STRIPE_API_KEY'
FakeStripe.reset
FakeStripe::StubStripeJS.boot_once
+ FakeStripe::StubStripeConnect.boot_once
stub_request(:any, /api.stripe.com/).to_rack(FakeStripe::StubApp)
end
end
STRIPE_JS_HOST = "http://localhost:#{FakeStripe::StubStripeJS.server_port}"
+STRIPE_CONNECT_HOST = "http://localhost:#{FakeStripe::StubStripeConnect.server_port}"