Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
Some refactoring and added .rvmrc to .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
arturopie committed May 30, 2011
1 parent 139b96f commit b51bb8c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -18,5 +18,6 @@ coverage
rdoc
pkg
tags
.rvmrc

## PROJECT::SPECIFIC
4 changes: 2 additions & 2 deletions test/master_test.rb
Expand Up @@ -115,8 +115,8 @@ def file_end(file, output)
: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)
Expand Down
2 changes: 1 addition & 1 deletion test/runner_test.rb
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions test/test_helper.rb
Expand Up @@ -56,6 +56,10 @@ def json_file
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:
Expand Down

0 comments on commit b51bb8c

Please sign in to comment.