title: RSpec / Webmock body response
body: <p>I'm using the webmock gem with rspec and I'm testing some functionality where I upload an image to a remote API. I want to stub the upload request to say that it will accept anything for the body. Is this possible?</p>
  
  <p>e.g. something along the lines of</p>
  
  <pre><code>  it "uploads a photo" do
      image = "test_image.jpg"
      @meh.upload_image(image)
      stub_request(:post, "http://myurl").
           with(:body =&gt; *).
           to_return(:status =&gt; 200, :body =&gt; "", :headers =&gt; {})
    end
  </code></pre>