From 96bcde80af780cf846e86e9983e37ee2d33aa2b3 Mon Sep 17 00:00:00 2001 From: ragaskar Date: Thu, 20 Aug 2009 19:21:07 -0700 Subject: [PATCH] Minor logging fix --- src/Block.js | 3 +-- src/Spec.js | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Block.js b/src/Block.js index 212f4a0..b9f8f86 100644 --- a/src/Block.js +++ b/src/Block.js @@ -12,8 +12,7 @@ jasmine.Block = function(env, func, spec) { this.spec = spec; }; -jasmine.Block.prototype.execute = function(onComplete) { - this.env.reporter.log('>> Jasmine Running ' + this.spec.suite.description + ' ' + this.spec.description + '...'); +jasmine.Block.prototype.execute = function(onComplete) { try { this.func.apply(this.spec); } catch (e) { diff --git a/src/Spec.js b/src/Spec.js index e56a3d2..ca84436 100644 --- a/src/Spec.js +++ b/src/Spec.js @@ -119,6 +119,7 @@ jasmine.Spec.prototype.execute = function(onComplete) { spec.finish(onComplete); return; } + this.env.reporter.log('>> Jasmine Running ' + this.suite.description + ' ' + this.description + '...'); spec.env.currentSpec = spec; spec.env.currentlyRunningTests = true;