fix(mocks): refactor currentSpec to work w/ Jasmine 2

Closes #5662
This commit is contained in:
John Papa 2014-01-07 07:33:39 -05:00 committed by Igor Minar
parent 8a0be355a9
commit 95f0bf9b52

View file

@ -1947,7 +1947,7 @@ if(window.jasmine || window.mocha) {
var currentSpec = null,
isSpecRunning = function() {
return currentSpec && (window.mocha || currentSpec.queue.running);
return !!currentSpec;
};