title: Webmock not catching external API calls
body: <p>I need to mock an external API request as part of a new cucumber test.  My usual practice is to first write the test that makes the call, and expect WebMock to complain about it.  Then using the information that WebMock provides, stub the request.  </p>
  
  <p>But in this repo (which is new to me), WebMock does not intercept the request.  It just times out.  Even more curious, it behaves exactly as I expect in rspec (it intercepts my request attempt, and tells me how to mock it), but not in cucumber.</p>
  
  <p>I DO have this in <code>features\support\webmock.rb:</code></p>
  
  <pre><code>WebMock.disable_net_connect!(:allow_localhost =&gt; true)
  </code></pre>
  
  <p>I've also tried putting that same line in <code>features\support\env.rb</code>.  Still allows the request.  </p>
  
  <p>I can figure out how to stub this another way, of course, but it bothers me that my tests could be making live calls if I make a mistake.  Can anyone help?</p>
  
  <p>UPDATE:  </p>
  
  <p>I've determined that <code>(:allow_localhost =&gt; true)
  </code> does indeed keep the external requests from being made, but it does not trigger the WebMock mechanism that shows the bad request (I assume by rescuing an exception), and instead the request simply times out.  Still don't know why.</p>
  
  <p>UPDATE 2:  </p>
  
  <p>I've found the problem.  This repo uses a custom client gem to talk to another internal service.  That gem rescues connection errors, and thus the webmock error gets swallowed.</p>