Validate our responses with Rack::Lint in tests
nateberkopec opened this issue · comments
Nate Berkopec commented
Keshav Biswa commented
Not sure where to add this.
Keshav Biswa commented
Does something like this work?
# Validate using Rack::Lint
if config.rack_lint_enabled # rack_lint_enabled is set to true by default
status, headers, body = Rack::Lint.new(@app).call(env)
else
status, headers, body = @app.call(env)
end
Nate Berkopec commented
Ah sorry - I should've been more specific. This should only be added to our test suite.