Refactor to remove global variables

This commit is contained in:
Dzmitry Plashchynski
2015-03-03 19:33:56 +02:00
parent 4c59804472
commit cbc33324cc
9 changed files with 33 additions and 50 deletions

View File

@@ -3,8 +3,10 @@ require "spec_helper"
describe Crono::Config do
describe "#initialize" do
it "should initialize schedule" do
@config = Crono.config
expect(@config.schedule).to be_a(Crono::Schedule)
@config = Crono::Config.new
expect(@config.cronotab).to be Crono::Config::CRONOTAB
expect(@config.logfile).to be Crono::Config::LOGFILE
expect(@config.daemonize).to be false
end
end
end