run stripe feature test only if key is set

This commit is contained in:
Rishabh Saxena 2016-08-17 23:57:40 +05:30
parent cc09dd76ba
commit 4152cb242c
2 changed files with 31 additions and 27 deletions

View file

@ -1,6 +1,6 @@
# Mock external requests to youtube
require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true, allow: %r{stripe.com})
WebMock.disable_net_connect!(allow_localhost: true, allow: /stripe.com/)
RSpec.configure do |config|
config.before(:each) do