mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-22 00:38:37 +02:00
Refactor to remove global variables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user