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

Version Path
solutious-rudy-0.9.0 tryouts/12_config/10_load_config_tryouts.rb
solutious-rudy-0.9.1 tryouts/12_config/10_load_config_tryouts.rb
solutious-rudy-0.9.2 tryouts/12_config/10_load_config_tryouts.rb
solutious-rudy-0.9.3 tryouts/12_config/10_load_config_tryouts.rb
solutious-rudy-0.9.4 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.020 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.019 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.018 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.017 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.016 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.015 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.014 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.013 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.012 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.011 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.010 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.009 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.008 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.007 tryouts/12_config/10_load_config_tryouts.rb
rudy-0.9.8.006 tryouts/12_config/10_load_config_tryouts.rb