Open myronmarston opened 10 years ago
In vcr/vcr#407, a user reported an issue with VCR that was due to their use of:
stub_request(:get, remote_file_url) .to_return(body: fixture_file('post_photo.jpg'))
VCR expects the body provided by WebMock to be a String but it was a Rack::Test::UploadedFile object. WebMock should fail fast when given a body object it does not support, as discussed in that ticket.
String
Rack::Test::UploadedFile
@myronmarston Thanks for reporting it. That makes sense.
In vcr/vcr#407, a user reported an issue with VCR that was due to their use of:
VCR expects the body provided by WebMock to be a
String
but it was aRack::Test::UploadedFile
object. WebMock should fail fast when given a body object it does not support, as discussed in that ticket.