Class: Rake::TestCase
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- Rake::TestCase
- Includes:
- DSL
- Defined in:
- lib/rake/test_case.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
62 63 64 65 66 67 68 69 |
# 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 ⇒ Object
71 72 73 74 |
# 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 = {}) ⇒ Object
76 77 78 79 80 81 82 83 |
# File 'lib/rake/test_case.rb', line 76 def util_setup_task( = {}) @task = @rake.remote_task :test_task, @task.commands = [] @task.output = [] @task.error = [] @task.action = nil @task end |