From cc09dd76bab3ba090daf0df5aae57871c9f2cd34 Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Wed, 17 Aug 2016 12:25:49 +0530 Subject: [PATCH] support/external_request: only allow stripe --- spec/features/ticket_purchases_spec.rb | 1 - spec/support/external_request.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/ticket_purchases_spec.rb b/spec/features/ticket_purchases_spec.rb index 592400ab..d7161961 100644 --- a/spec/features/ticket_purchases_spec.rb +++ b/spec/features/ticket_purchases_spec.rb @@ -46,7 +46,6 @@ feature Registration do sleep(20) end - expect(page).to have_content("2 #{ticket.title} Tickets for $ 10") expect(current_path).to eq(conference_conference_registration_path(conference.short_title)) expect(page.has_content?("2 #{ticket.title} Tickets for $ 10")).to be true end diff --git a/spec/support/external_request.rb b/spec/support/external_request.rb index 4a0d21cf..2de4ab08 100644 --- a/spec/support/external_request.rb +++ b/spec/support/external_request.rb @@ -1,6 +1,6 @@ # Mock external requests to youtube require 'webmock/rspec' -WebMock.allow_net_connect! +WebMock.disable_net_connect!(allow_localhost: true, allow: %r{stripe.com}) RSpec.configure do |config| config.before(:each) do