I've written a successful cucumber and capybara test, which executes a purchase using paypal sandbox. However, I want stub paypal sandbox request so that my test isn't dependent on the paypal sandbox being up.
I'm not 100% familiar with Webmock and its documentation isn't very clear. When I added the Webmock gem, created the necessary webmock.rb with
require 'webmock/cucumber' WebMock.disable_net_connect!(:allow_localhost => true)
When I run my old cucumber test, it proceeds as normal opening paypal sandbox window and completing the transaction.
Is this normal? I though WebMock was supposed to shut out attempts to connecting to third party sites.