0d8f680d4f
SVG-Edit -> 2.5final Vendored Rack -> 1.2.1
12 lines
320 B
Ruby
12 lines
320 B
Ruby
require 'rack/nulllogger'
|
|
|
|
describe Rack::NullLogger do
|
|
should "act as a noop logger" do
|
|
app = lambda { |env|
|
|
env['rack.logger'].warn "b00m"
|
|
[200, {'Content-Type' => 'text/plain'}, ["Hello, World!"]]
|
|
}
|
|
logger = Rack::NullLogger.new(app)
|
|
lambda{ logger.call({}) }.should.not.raise
|
|
end
|
|
end
|