summaryrefslogtreecommitdiff
path: root/test/spec_logger.rb
diff options
context:
space:
mode:
authorRyan Davis <ryand-ruby@zenspider.com>2015-06-12 00:41:57 -0700
committerRyan Davis <ryand-ruby@zenspider.com>2015-06-12 00:41:57 -0700
commitc99a755a3f55f0769245e7a22dd000b471f77d88 (patch)
tree120f7686f5415a0a7789a38f00268fe80469ed81 /test/spec_logger.rb
parentdf941b3cc45b15d544f3445e3bfcbdd9add362a6 (diff)
downloadrack-c99a755a3f55f0769245e7a22dd000b471f77d88.tar.gz
First attempt to mass-port from minitest/bacon to minitest/spec.
I still can't run some of the tests, so they might have problems. I'll leave it to the CI to catch them.
Diffstat (limited to 'test/spec_logger.rb')
-rw-r--r--test/spec_logger.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/spec_logger.rb b/test/spec_logger.rb
index 4b0b63e4..ea503e1d 100644
--- a/test/spec_logger.rb
+++ b/test/spec_logger.rb
@@ -1,4 +1,4 @@
-require 'minitest/bacon'
+require 'minitest/autorun'
require 'stringio'
require 'rack/lint'
require 'rack/logger'
@@ -14,11 +14,11 @@ describe Rack::Logger do
[200, {'Content-Type' => 'text/plain'}, ["Hello, World!"]]
}
- should "conform to Rack::Lint" do
+ it "conform to Rack::Lint" do
errors = StringIO.new
a = Rack::Lint.new(Rack::Logger.new(app))
Rack::MockRequest.new(a).get('/', 'rack.errors' => errors)
- errors.string.should.match(/INFO -- : Program started/)
- errors.string.should.match(/WARN -- : Nothing to do/)
+ errors.string.must_match(/INFO -- : Program started/)
+ errors.string.must_match(/WARN -- : Nothing to do/)
end
end