Sha256: 3b22c8ef1e00a61570b67618c676a01f589c0098454c6ed99aeaa7f52e4350fe

Contents?: true

Size: 320 Bytes

Versions: 149

Compression:

Stored size: 320 Bytes

Contents

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

Version data entries

149 entries across 128 versions & 16 rubygems

Version Path
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
jquery_regex-0.0.3 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
jquery_regex-0.0.1 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
challah-rolls-0.2.0 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
challah-0.8.3 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.6.8 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.6.7 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.6.6 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.6.5 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.6.4 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.6.3 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.6.2 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb