test/test_logger.rb in god-0.7.13 vs test/test_logger.rb in god-0.7.14
- old
+ new
@@ -5,11 +5,12 @@
@log = God::Logger.new
end
# log
- def test_log
+ def test_log_should_keep_logs_when_wanted
+ @log.watch_log_since('foo', Time.now)
@log.expects(:info).with("qux")
no_stdout do
@log.log(stub(:name => 'foo'), :info, "qux")
end
@@ -29,9 +30,11 @@
# watch_log_since
def test_watch_log_since
t1 = Time.now
+
+ @log.watch_log_since('foo', t1)
no_stdout do
@log.log(stub(:name => 'foo'), :info, "one")
@log.log(stub(:name => 'foo'), :info, "two")
end
\ No newline at end of file