moved test helping code to the fixtures directory

This commit is contained in:
Nick Gauthier 2010-01-28 10:23:42 -05:00
parent 9b5107f392
commit 4295ef6a80
5 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class TestRunner < Test::Unit::TestCase
should "boot and run a file and shut down" do
assert @pipe.gets.is_a?(Hydra::Messages::Runner::RequestFile)
file = File.join(File.dirname(__FILE__), 'sample_tests', 'assert_true.rb')
file = File.join(File.dirname(__FILE__), 'fixtures', 'assert_true.rb')
@pipe.write(Hydra::Messages::Runner::RunFile.new(:file => file))
response = @pipe.gets
assert response.is_a?(Hydra::Messages::Runner::Results)
@ -30,7 +30,7 @@ class TestRunner < Test::Unit::TestCase
target = File.join(Dir.tmpdir, 'hydra_test.txt')
FileUtils.rm_f(target)
assert !File.exists?(target)
file = File.join(File.dirname(__FILE__), 'sample_tests', 'write_file.rb')
file = File.join(File.dirname(__FILE__), 'fixtures', 'write_file.rb')
assert @pipe.gets.is_a?(Hydra::Messages::Runner::RequestFile)
@pipe.write(Hydra::Messages::Runner::RunFile.new(:file => file))
response = @pipe.gets

View File

@ -6,7 +6,7 @@ class TestSSH < Test::Unit::TestCase
@ssh = Hydra::SSH.new(
'localhost', # connect to this machine
File.expand_path(File.join(File.dirname(__FILE__))), # move to the test directory
"ruby ./echo_the_dolphin.rb"
"ruby fixtures/echo_the_dolphin.rb"
)
@message = Hydra::Messages::TestMessage.new
end