test/runner_test.rb in hydra-0.21.0 vs test/runner_test.rb in hydra-0.22.0

- old
+ new

@@ -48,11 +48,10 @@ results = runner.run_file(json_file) assert results =~ /trailing comma/, results end should "run two rspec tests" do - puts "First test" runner = Hydra::Runner.new(:io => File.new('/dev/null', 'w')) runner.run_file(rspec_file) assert File.exists?(target_file) assert_equal "HYDRA", File.read(target_file) @@ -79,12 +78,12 @@ should "run two cucumber tests" do # because of all the crap cucumber pulls in # we run this in a fork to not contaminate # the main test environment pid = Process.fork do - puts "THE FOLLOWING WARNINGS CAN BE IGNORED" - puts "It is caused by Cucumber loading all rb files near its features" + # need to get into the fixtures directory so cucumber doesn't load up the whole project + Dir.chdir(File.join(File.dirname(__FILE__), 'fixtures')) runner = Hydra::Runner.new(:io => File.new('/dev/null', 'w')) runner.run_file(cucumber_feature_file) assert File.exists?(target_file) assert_equal "HYDRA", File.read(target_file) @@ -93,12 +92,10 @@ runner.run_file(alternate_cucumber_feature_file) assert File.exists?(alternate_target_file) assert_equal "HYDRA", File.read(alternate_target_file) assert !File.exists?(target_file) - - puts "END IGNORABLE OUTPUT" end Process.wait pid end should "be able to run a runner over ssh" do @@ -135,10 +132,9 @@ assert pipe.gets.is_a?(Hydra::Messages::Runner::RequestFile) pipe.write(Hydra::Messages::Worker::RunFile.new(:file => file)) # grab its response. This makes us wait for it to finish response = pipe.gets - puts response.output # tell it to shut down pipe.write(Hydra::Messages::Worker::Shutdown.new) # ensure it ran