Add custom Logger

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 19:13:40 +02:00
parent 2ce9db45db
commit 4c59804472
5 changed files with 31 additions and 2 deletions

View File

@@ -38,5 +38,10 @@ describe Crono::CLI do
cli.send(:parse_options, ["--logfile", "log/crono.log"])
expect(Crono.config.logfile).to be_eql "log/crono.log"
end
it "should set daemonize" do
cli.send(:parse_options, ["--daemonize"])
expect(Crono.config.daemonize).to be true
end
end
end