instiki/vendor/plugins/rack/test/spec_nulllogger.rb
Jacques Distler 0d8f680d4f Updates
SVG-Edit -> 2.5final
Vendored Rack -> 1.2.1
2010-06-17 19:27:39 -05:00

13 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