Sha256: c5c6b5d70100fa7ffdf759ee28d34fcd30612323ef68b270ac0e6c8b7b24d1db

Contents?: true

Size: 1002 Bytes

Versions: 36

Compression:

Stored size: 1002 Bytes

Contents


group "Rudy::Huxtable"
library :rudy, 'lib'

tryout "Is well kept" do
  set :oldlogger, Rudy::Huxtable.logger
  setup do
    #Rudy::Huxtable.update_config
  end
  clean do
    Rudy::Huxtable.update_logger oldlogger
  end
  
  drill "has config", Rudy::Huxtable.config, :class, Rudy::Config
  drill "has global", Rudy::Huxtable.global, :class, Rudy::Global 
  drill "has logger", Rudy::Huxtable.logger, :class, StringIO
  drill "specify logger", :class, IO do
    Rudy::Huxtable.update_logger STDOUT
    Rudy::Huxtable.logger
  end
  
 # drill "knows where config lives", Rudy::Huxtable.config_dirname 
end

tryout "Loads configuration" do
  
end


tryout "Knows the defaults" do
  setup do
    class ::Olivia                 # :: to define the class in the root context
      include Rudy::Huxtable
    end
  end
  
  drill "create olivia", 'Olivia' do
    @@olivia = Olivia.new
    @@olivia.class.to_s
  end
  
  drill "machine group", 'stage-app' do
    @@olivia.current_machine_group
  end
  
end

Version data entries

36 entries across 36 versions & 2 rubygems

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