MiniProfiler / rack-mini-profiler

Profiler for your development and production Ruby rack apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validate our responses with Rack::Lint in tests

nateberkopec opened this issue · comments

Not sure where to add this.

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

@nateberkopec

Ah sorry - I should've been more specific. This should only be added to our test suite.