Open
Description
We have a number of request specs for our API and after upgrading Rack from 2.x to 3.x, they all started failing with:
Failure/Error: get "/api/v1/products/1", headers: @headers
NoMethodError:
undefined method `read' for nil:NilClass
The way to resolve these errors is to convert the get request to
get "/api/v1/products/1", headers: @headers, env: { 'rack.input' => StringIO.new }
However, it seems very verbose to add this to each request. Am I missing an easier / better way to avoid this error?
This is on rspec-rails 7.1.0 and rspec-core 3.13.2.
Metadata
Metadata
Assignees
Labels
No labels