title: Blocking web requests while step code is running in cucumber
body: <p>I'm using Cucumber + Selenium for testing some Rails code. In that configuration I'm sometimes running into an issue where some extra resources / delayed request gets loaded in the browser after the first step (requesting the page) has finished and the second step is running.</p>
  
  <p>Unfortunately the code is not thread-safe and the extra request and the next step cannot run at the same time.</p>
  
  <p>Is there any way to lock the webrick from accepting any requests until a specific section of feature/step code is complete? Does cucumber or webrick expose any relevant synchronisation?</p>