a705709f9a
Also clean up some View stuff.
14 lines
315 B
Ruby
14 lines
315 B
Ruby
require 'rack/nulllogger'
|
|
require 'rack/lint'
|
|
require 'rack/mock'
|
|
|
|
context "Rack::NullLogger" do
|
|
specify "acks as a nop logger" do
|
|
app = lambda { |env|
|
|
env['rack.logger'].warn "b00m"
|
|
[200, {'Content-Type' => 'text/plain'}, ["Hello, World!"]]
|
|
}
|
|
Rack::NullLogger.new(app).call({})
|
|
end
|
|
end
|