title: How can I mock twitter streaming client calls within rspec?
body: <p>Using rspec and the twitter gem <a href="https://github.com/sferik/twitter" rel="nofollow">https://github.com/sferik/twitter</a></p>
  
  <p>I am trying to find a solution to mock a twitter stream ideally with a mechanism like VCR. Obviously VCR does not work on tcp socket connections only http requests.</p>
  
  <p>If this is too much to ask, any hints about where to stub what would be helpful.</p>