Add logfile option

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 19:01:33 +02:00
parent 9675fc3517
commit 0ead66f626
4 changed files with 16 additions and 2 deletions

View File

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