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
classiccms-0.7.5 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.7.4 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.7.3 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
candlepin-api-0.4.0 bundle/ruby/gems/rack-1.3.5/test/spec_nulllogger.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/rack-1.3.5/test/spec_nulllogger.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/rack-1.3.5/test/spec_nulllogger.rb
classiccms-0.7.2 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.7.1 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.7.0 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
rack-1.3.10 test/spec_nulllogger.rb
rack-1.2.8 test/spec_nulllogger.rb
rack-1.3.9 test/spec_nulllogger.rb
rack-1.2.7 test/spec_nulllogger.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/test/spec_nulllogger.rb
rack-1.3.8 test/spec_nulllogger.rb
rack-1.3.7 test/spec_nulllogger.rb
rack-1.2.6 test/spec_nulllogger.rb
challah-0.9.0 vendor/bundle/gems/rack-1.4.1/test/spec_nulllogger.rb
classiccms-0.6.9 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