From 202563ffd85be81d094f75eaf23600fc9bc927f0 Mon Sep 17 00:00:00 2001 From: Nick Gauthier Date: Sun, 11 Apr 2010 11:02:50 -0400 Subject: [PATCH] fixed success detection for rspec due to faulty regex matching --- lib/hydra/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hydra/runner.rb b/lib/hydra/runner.rb index 2f48d03..d723d88 100644 --- a/lib/hydra/runner.rb +++ b/lib/hydra/runner.rb @@ -131,7 +131,7 @@ module Hydra #:nodoc: Spec::Runner.options.run_examples hydra_output.rewind output = hydra_output.read.chomp - output = "" if output =~ /^\.*$/ + output = "" if output.gsub("\n","") =~ /^\.*$/ return output end