From 4295ef6a8088579707ae79825c32c651ac72286e Mon Sep 17 00:00:00 2001 From: Nick Gauthier Date: Thu, 28 Jan 2010 10:23:42 -0500 Subject: [PATCH] moved test helping code to the fixtures directory --- test/{sample_tests => fixtures}/assert_true.rb | 0 test/{ => fixtures}/echo_the_dolphin.rb | 0 test/{sample_tests => fixtures}/write_file.rb | 0 test/test_runner.rb | 4 ++-- test/test_ssh.rb | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename test/{sample_tests => fixtures}/assert_true.rb (100%) rename test/{ => fixtures}/echo_the_dolphin.rb (100%) rename test/{sample_tests => fixtures}/write_file.rb (100%) diff --git a/test/sample_tests/assert_true.rb b/test/fixtures/assert_true.rb similarity index 100% rename from test/sample_tests/assert_true.rb rename to test/fixtures/assert_true.rb diff --git a/test/echo_the_dolphin.rb b/test/fixtures/echo_the_dolphin.rb similarity index 100% rename from test/echo_the_dolphin.rb rename to test/fixtures/echo_the_dolphin.rb diff --git a/test/sample_tests/write_file.rb b/test/fixtures/write_file.rb similarity index 100% rename from test/sample_tests/write_file.rb rename to test/fixtures/write_file.rb diff --git a/test/test_runner.rb b/test/test_runner.rb index c6a9fab..e07540e 100644 --- a/test/test_runner.rb +++ b/test/test_runner.rb @@ -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 diff --git a/test/test_ssh.rb b/test/test_ssh.rb index be402e3..33f3bd7 100644 --- a/test/test_ssh.rb +++ b/test/test_ssh.rb @@ -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