class Rake::TestCase

Public Instance Methods

setup() click to toggle source
# File lib/rake/test_case.rb, line 62
def setup
  @rake = Rake::RemoteTask
  @rake.reset
  Rake.application.clear
  @task_count = Rake.application.tasks.size
  @rake.set :domain, "example.com"
  @lock = Mutex.new
end
util_set_hosts() click to toggle source
# File lib/rake/test_case.rb, line 71
def util_set_hosts
  @rake.host "app.example.com", :app
  @rake.host "db.example.com", :db
end
util_setup_task(options = {}) click to toggle source
# File lib/rake/test_case.rb, line 76
def util_setup_task(options = {})
  @task = @rake.remote_task :test_task, options
  @task.commands = []
  @task.output   = []
  @task.error    = []
  @task.action   = nil
  @task
end