Class: Drunit::RemoteApp
- Inherits:
-
Object
- Object
- Drunit::RemoteApp
- Defined in:
- lib/drunit/remote_app.rb
Instance Method Summary collapse
-
#initialize(name, boot = nil, dir = nil) ⇒ RemoteApp
constructor
A new instance of RemoteApp.
- #new_test_case(class_name = "Test::Unit::TestCase") ⇒ Object
Constructor Details
#initialize(name, boot = nil, dir = nil) ⇒ RemoteApp
Returns a new instance of RemoteApp.
6 7 8 9 10 11 12 13 |
# File 'lib/drunit/remote_app.rb', line 6 def initialize(name, boot = nil, dir = nil) @name = name @boot = boot @dir = File.(dir || name.to_s) @boot ||= "test/drunit_test_helper.rb" if File.exist? "#{@dir}/test/drunit_test_helper.rb" @boot ||= "test/test_helper.rb" if File.exist? "#{@dir}/test/test_helper.rb" @remote_object = nil end |
Instance Method Details
#new_test_case(class_name = "Test::Unit::TestCase") ⇒ Object
15 16 17 |
# File 'lib/drunit/remote_app.rb', line 15 def new_test_case(class_name = "Test::Unit::TestCase") app.new_test_case(class_name) end |