support/external_request: only allow stripe

This commit is contained in:
Rishabh Saxena 2016-08-17 12:25:49 +05:30
parent 43ac7742a1
commit cc09dd76ba
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -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