diff options
author | Lars Gierth <lars.gierth@gmail.com> | 2011-12-28 21:44:45 +0100 |
---|---|---|
committer | Lars Gierth <lars@soundcloud.com> | 2012-03-31 20:23:55 +0200 |
commit | 761bc5472c0b447937ef31b0b81528cfec5f8766 (patch) | |
tree | 8ac3629c618af703eb7d640de4754a68e7b3ca85 /test/spec_logger.rb | |
parent | 0cb39b04c578ce3a510635b4a169379a1e0d5fd5 (diff) | |
download | rack-761bc5472c0b447937ef31b0b81528cfec5f8766.tar.gz |
Wrap test apps in Rack::Lint and fix uncovered errors (fourth pass)
Update tests for Lobster, Lock, Logger and MethodOverride.
Diffstat (limited to 'test/spec_logger.rb')
-rw-r--r-- | test/spec_logger.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/spec_logger.rb b/test/spec_logger.rb index f9e79739..2ff44080 100644 --- a/test/spec_logger.rb +++ b/test/spec_logger.rb @@ -1,5 +1,7 @@ require 'stringio' +require 'rack/lint' require 'rack/logger' +require 'rack/mock' describe Rack::Logger do app = lambda { |env| @@ -11,13 +13,6 @@ describe Rack::Logger do [200, {'Content-Type' => 'text/plain'}, ["Hello, World!"]] } - should "log to rack.errors" do - errors = StringIO.new - Rack::Logger.new(app).call('rack.errors' => errors) - errors.string.should.match(/INFO -- : Program started/) - errors.string.should.match(/WARN -- : Nothing to do/) - end - should "conform to Rack::Lint" do errors = StringIO.new a = Rack::Lint.new(Rack::Logger.new(app)) |