From 54e9ac393a5ea4ed7bb3e423c603d02ee80ec7d5 Mon Sep 17 00:00:00 2001 From: John Papa Date: Tue, 7 Jan 2014 07:33:39 -0500 Subject: [PATCH] refactor currentSpec to work for Jasmine 2 --- src/ngMock/angular-mocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 125a42a65c16..12a5c0f7fc8e 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -1836,7 +1836,7 @@ angular.mock.clearDataCache = function() { }); function isSpecRunning() { - return currentSpec && (window.mocha || currentSpec.queue.running); + return !!currentSpec; } /**