Skip to content

Commit

Permalink
Tryouts mini re-org
Browse files Browse the repository at this point in the history
  • Loading branch information
delano committed Jun 6, 2009
1 parent 0d8ab2c commit e0750ac
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 45 deletions.
8 changes: 4 additions & 4 deletions tryouts/10_require_time/10_rudy_tryouts.rb
@@ -1,8 +1,8 @@

LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

group "Require-time"
library :rudy, LIB_DIR
library :rudy, rudy_lib_path

tryout "Rudy Initialization" do
setup do
Expand All @@ -24,11 +24,10 @@
Rudy.debug?
end


end


dreams "Rudy Initialization" do

dream "version matches gemspec" do
require 'rubygems' unless defined?(Gem)
eval( File.read(File.join(RUDY_HOME, 'rudy.gemspec')))
Expand All @@ -42,6 +41,7 @@

dream "debug can be enabled", true
dream "debug can be disabled", true

end


4 changes: 2 additions & 2 deletions tryouts/12_config/10_load_config_tryouts.rb
@@ -1,8 +1,8 @@

LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

group "Config"
library :rudy, LIB_DIR
library :rudy, rudy_lib_path

tryout "Loads config files" do

Expand Down
4 changes: 2 additions & 2 deletions tryouts/12_config/20_defaults_tryouts.rb
@@ -1,8 +1,8 @@

LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

group "Config"
library :rudy, LIB_DIR
library :rudy, rudy_lib_path

tryout "Defaults" do
setup do
Expand Down
4 changes: 2 additions & 2 deletions tryouts/12_config/30_accounts_tryouts.rb
@@ -1,8 +1,8 @@

LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

group "Config"
library :rudy, LIB_DIR
library :rudy, rudy_lib_path

tryout "Accounts" do
setup do
Expand Down
4 changes: 2 additions & 2 deletions tryouts/12_config/40_machines_tryouts.rb
@@ -1,8 +1,8 @@

LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

group "Config"
library :rudy, LIB_DIR
library :rudy, rudy_lib_path

tryout "Machines" do
setup do
Expand Down
6 changes: 3 additions & 3 deletions tryouts/12_config/50_commands_tryouts.rb
@@ -1,8 +1,8 @@

LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

group "Config"
library :rudy, LIB_DIR
library :rudy, rudy_lib_path

tryout "Commands" do
setup do
Expand All @@ -16,5 +16,5 @@

end
dreams "Commands" do
dream "is a well-formed hash", [:allow], :poop
dream "is a well-formed hash", [:allow]
end
4 changes: 2 additions & 2 deletions tryouts/12_config/60_routines_tryouts.rb
@@ -1,8 +1,8 @@

LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

group "Config"
library :rudy, LIB_DIR
library :rudy, rudy_lib_path

tryout "Routines" do
setup do
Expand Down
4 changes: 2 additions & 2 deletions tryouts/15_huxtable/10_huxtable_tryouts.rb
@@ -1,8 +1,8 @@

LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

group "Rudy::Huxtable"
library :rudy, LIB_DIR
library :rudy, rudy_lib_path

tryout "Is well kept" do
setup do
Expand Down
22 changes: 22 additions & 0 deletions tryouts/30_metadata/10_disks_tryouts.rb
@@ -0,0 +1,22 @@

rudy_lib_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))

group "Rudy MetaData"
library :rudy, rudy_lib_path

tryout "Disk API" do
setup do

end


drill "create disk" do
disk = Rudy::MetaData::Disk.new
end

end


tryout "Disk API" do
dream "create disk", String, :class
end
File renamed without changes.
File renamed without changes.
Empty file.
22 changes: 22 additions & 0 deletions tryouts/90_cli/60_rudy_tryouts.rb
@@ -0,0 +1,22 @@

RUDY_HOME = File.expand_path(File.join(File.dirname(__FILE__), '..'))

group "Rudy CLI"
command :rudy, File.join(RUDY_HOME, 'bin', 'rudy')

dreams File.join(GYMNASIUM_HOME, '90_cli')
tryout "rudy machines" do
drill "no machines, no args", :machines
##drill "startup", :startup
end

tryout "rudy myaddress" do
drill 'no args', :myaddress
drill 'internal only', :myaddress, :i
drill 'external only', :myaddress, :e
drill 'quiet', :q, :myaddress
end




26 changes: 0 additions & 26 deletions tryouts/dreams/rudycli_dreams.rb

This file was deleted.

0 comments on commit e0750ac

Please sign in to comment.