Class: Rake::TestCase

Inherits:
MiniTest::Unit::TestCase
  • Object
show all
Defined in:
lib/rake/test_case.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



60
61
62
63
64
65
66
# File 'lib/rake/test_case.rb', line 60

def setup
  @rake = Rake::RemoteTask
  @rake.reset
  Rake.application.clear
  @task_count = Rake.application.tasks.size
  @rake.set :domain, "example.com"
end

#util_set_hostsObject



68
69
70
71
# File 'lib/rake/test_case.rb', line 68

def util_set_hosts
  @rake.host "app.example.com", :app
  @rake.host "db.example.com", :db
end