diff --git a/lib/guard/jasmine/phantomjs/run-jasmine.coffee b/lib/guard/jasmine/phantomjs/run-jasmine.coffee index 4007ed3..37087f0 100644 --- a/lib/guard/jasmine/phantomjs/run-jasmine.coffee +++ b/lib/guard/jasmine/phantomjs/run-jasmine.coffee @@ -234,6 +234,7 @@ page.onInitialized = -> # Open web page and run the Jasmine test runner # page.open url, (status) -> + page.onLoadFinished = -> if status isnt 'success' console.log JSON.stringify({ error: "Unable to access Jasmine specs at #{ url }" }) phantom.exit()