From 91d9773933506eab47cc1b9d526427fff4d30385 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 10 Nov 2011 14:18:25 -0500 Subject: [PATCH] do the ping better --- vendor/assets/coffeescripts/jasmine-extensions.coffee | 4 ++++ vendor/assets/javascripts/jasmine-extensions.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/vendor/assets/coffeescripts/jasmine-extensions.coffee b/vendor/assets/coffeescripts/jasmine-extensions.coffee index f7e8ce6..a06150e 100644 --- a/vendor/assets/coffeescripts/jasmine-extensions.coffee +++ b/vendor/assets/coffeescripts/jasmine-extensions.coffee @@ -25,6 +25,10 @@ if window.JHW parts.push('') parts.join("||") + jasmine.Spec.prototype.finishCallback = -> + JHW.ping() + this.env.reporter.reportSpecResults(this) + jasmine.Spec.prototype.fail = (e) -> if e and e.sourceURL and window.CoffeeScriptToFilename filename = e.sourceURL.split('/').pop() diff --git a/vendor/assets/javascripts/jasmine-extensions.js b/vendor/assets/javascripts/jasmine-extensions.js index d7a64e0..6464dd3 100644 --- a/vendor/assets/javascripts/jasmine-extensions.js +++ b/vendor/assets/javascripts/jasmine-extensions.js @@ -27,6 +27,10 @@ } return parts.join("||"); }; + jasmine.Spec.prototype.finishCallback = function() { + JHW.ping(); + return this.env.reporter.reportSpecResults(this); + }; jasmine.Spec.prototype.fail = function(e) { var expectationResult, filename, realFilename; if (e && e.sourceURL && window.CoffeeScriptToFilename) {