test/test_logger.rb in god-0.8.0 vs test/test_logger.rb in god-0.9.0
- old
+ new
@@ -17,10 +17,10 @@
assert_instance_of Time, @log.logs['foo'][0][0]
assert_match(/qux/, @log.logs['foo'][0][1])
end
def test_log_should_send_to_syslog
- Syslog.expects(:crit).with('foo')
+ SysLogger.expects(:log).with(:fatal, 'foo')
@log.log(stub(:name => 'foo'), :fatal, "foo")
end
# watch_log_since
\ No newline at end of file