Some refactoring and added .rvmrc to .gitignore
This commit is contained in:
parent
139b96f434
commit
b51bb8c136
|
@ -18,5 +18,6 @@ coverage
|
|||
rdoc
|
||||
pkg
|
||||
tags
|
||||
.rvmrc
|
||||
|
||||
## PROJECT::SPECIFIC
|
||||
|
|
|
@ -115,8 +115,8 @@ class MasterTest < Test::Unit::TestCase
|
|||
:workers => [{
|
||||
:type => :ssh,
|
||||
:connect => 'localhost',
|
||||
:directory => File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')),
|
||||
:runners => 1
|
||||
:directory => remote_dir_path,
|
||||
:runners => 1
|
||||
}]
|
||||
)
|
||||
assert File.exists?(target_file)
|
||||
|
|
|
@ -98,7 +98,7 @@ class RunnerTest < Test::Unit::TestCase
|
|||
should "be able to run a runner over ssh" do
|
||||
ssh = Hydra::SSH.new(
|
||||
'localhost',
|
||||
File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')),
|
||||
remote_dir_path,
|
||||
"ruby -e \"require 'rubygems'; require 'hydra'; Hydra::Runner.new(:io => Hydra::Stdio.new, :verbose => true);\""
|
||||
)
|
||||
assert ssh.gets.is_a?(Hydra::Messages::Runner::RequestFile)
|
||||
|
|
|
@ -56,6 +56,10 @@ class Test::Unit::TestCase
|
|||
def conflicting_test_file
|
||||
File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', 'conflicting.rb'))
|
||||
end
|
||||
|
||||
def remote_dir_path
|
||||
File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||
end
|
||||
end
|
||||
|
||||
module Hydra #:nodoc:
|
||||
|
|
Loading…
Reference in New Issue