test/test_logger.rb in god-0.13.4 vs test/test_logger.rb in god-0.13.5
- old
+ new
@@ -1,8 +1,8 @@
require File.dirname(__FILE__) + '/helper'
-class TestLogger < Test::Unit::TestCase
+class TestLogger < Minitest::Test
def setup
@log = God::Logger.new(StringIO.new('/dev/null'))
end
# log
@@ -39,11 +39,11 @@
@log.log(stub(:name => 'foo'), :info, "three")
out = @log.watch_log_since('foo', t2)
- assert_no_match(/one/, out)
- assert_no_match(/two/, out)
+ assert(/one/ !~ out)
+ assert(/two/ !~ out)
assert_match(/three/, out)
end
# regular methods