From 70b26b2c088348bf025e0cec67abe4bebec030ac Mon Sep 17 00:00:00 2001 From: Steven Mitcham Date: Fri, 23 Sep 2011 11:54:46 -0500 Subject: [PATCH] Fixing issue with jasmine headless webkit returning 'true' when a compilation error occurs --- lib/guard/jasmine-headless-webkit.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/guard/jasmine-headless-webkit.rb b/lib/guard/jasmine-headless-webkit.rb index 44d7a4b..85d9977 100644 --- a/lib/guard/jasmine-headless-webkit.rb +++ b/lib/guard/jasmine-headless-webkit.rb @@ -72,9 +72,8 @@ module Guard else UI.info(SOME_SPECS_MESSAGE % paths.join(' ')) end - if failed_files = JasmineHeadlessWebkitRunner.run(paths, @filtered_options) - @files_to_rerun = failed_files + failed_files = @files_to_rerun = failed_files.is_a?(Array) ? failed_files : [] end failed_files && failed_files.empty?