fix(ngMock): fix isSpecRunning to work for Mocha

When running inside Mocha, don't look in Jasmine's spec.queue.running.
It's not there. This is documented as issue #1467; I think this issue was
also responsible for #1589 and recent complaints in #1253.

Closes #1467.
This commit is contained in:
Matt Ginzton 2013-02-25 23:20:41 -08:00 committed by Igor Minar
parent 398691beb3
commit 6397860831

View file

@ -1677,7 +1677,7 @@ window.jstestdriver && (function(window) {
});
function isSpecRunning() {
return currentSpec && currentSpec.queue.running;
return currentSpec && (window.mocha || currentSpec.queue.running);
}
/**