Fixing issue with jasmine headless webkit returning 'true' when a compilation error occurs

This commit is contained in:
Steven Mitcham 2011-09-23 11:54:46 -05:00
parent 9b6cb02d06
commit 70b26b2c08
1 changed files with 1 additions and 2 deletions

View File

@ -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?