Sha256: c6efa48d387eecdd43cd577c43c13ea88155c97589cc167e25f0e356e1f0f26b
Contents?: true
Size: 1.01 KB
Versions: 36
Compression:
Stored size: 1.01 KB
Contents
group "Config" library :rudy, File.expand_path(File.join(GYMNASIUM_HOME, '..', 'lib')) tryout "Loads config files" do drill "load configs when created", 1 do @@config = Rudy::Config.new Rudy::CONFIG_FILE @@config.paths.size end drill "has accounts", :class, Rudy::Config::Accounts do @@config.accounts end drill "has defaults", :class, Rudy::Config::Defaults do @@config.defaults end drill "loads additional configs", 2 do @@config.paths << File.join(RUDY_HOME, 'Rudyfile') @@config.refresh @@config.paths.size end drill "has machines", :class, Rudy::Config::Machines do @@config.machines end drill "has commands", :class, Rudy::Config::Commands do @@config.commands end drill "has routines", :class, Rudy::Config::Routines do @@config.routines end drill "autoloads known configs", true do conf = Rudy::Config.new conf.look_and_load # Needs to run before checking accounts, et al (!conf.paths.empty? && !conf.paths.nil?) end end
Version data entries
36 entries across 36 versions & 2 rubygems