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

View File

@ -72,9 +72,8 @@ module Guard
else else
UI.info(SOME_SPECS_MESSAGE % paths.join(' ')) UI.info(SOME_SPECS_MESSAGE % paths.join(' '))
end end
if failed_files = JasmineHeadlessWebkitRunner.run(paths, @filtered_options) 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 end
failed_files && failed_files.empty? failed_files && failed_files.empty?