moved test helping code to the fixtures directory
This commit is contained in:
parent
9b5107f392
commit
4295ef6a80
|
@ -17,7 +17,7 @@ class TestRunner < Test::Unit::TestCase
|
||||||
should "boot and run a file and shut down" do
|
should "boot and run a file and shut down" do
|
||||||
assert @pipe.gets.is_a?(Hydra::Messages::Runner::RequestFile)
|
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))
|
@pipe.write(Hydra::Messages::Runner::RunFile.new(:file => file))
|
||||||
response = @pipe.gets
|
response = @pipe.gets
|
||||||
assert response.is_a?(Hydra::Messages::Runner::Results)
|
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')
|
target = File.join(Dir.tmpdir, 'hydra_test.txt')
|
||||||
FileUtils.rm_f(target)
|
FileUtils.rm_f(target)
|
||||||
assert !File.exists?(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)
|
assert @pipe.gets.is_a?(Hydra::Messages::Runner::RequestFile)
|
||||||
@pipe.write(Hydra::Messages::Runner::RunFile.new(:file => file))
|
@pipe.write(Hydra::Messages::Runner::RunFile.new(:file => file))
|
||||||
response = @pipe.gets
|
response = @pipe.gets
|
||||||
|
|
|
@ -6,7 +6,7 @@ class TestSSH < Test::Unit::TestCase
|
||||||
@ssh = Hydra::SSH.new(
|
@ssh = Hydra::SSH.new(
|
||||||
'localhost', # connect to this machine
|
'localhost', # connect to this machine
|
||||||
File.expand_path(File.join(File.dirname(__FILE__))), # move to the test directory
|
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
|
@message = Hydra::Messages::TestMessage.new
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue