Add a test documenting fits in fdescribes

Yo, this probably isn't the best behavior. Rspec and Ginkgo definitely
do not exhibit this behavior when you nest focused runnables inside
other focused runnables. We thought fixing it, but it seems like a
nontrivial refactoring would be necessary to clean this up.

[#73742944]
This commit is contained in:
Greg Cobb and Tim Jarratt
2014-08-28 16:16:04 -07:00
committed by Greg Cobb and Tim Jarratt
parent 64a67ed320
commit 9afae3d978

View File

@@ -407,6 +407,25 @@ describe("jasmine spec running", function () {
env.addReporter({jasmineDone: assertions});
env.execute();
});
it('runs fits in fdescribes twice', function(){
var actions = [];
env.fdescribe('focused suite', function() {
env.fit('focused spec', function() {
actions.push('focused spec')
});
});
var assertions = function() {
var expected = ['focused spec', 'focused spec'];
expect(actions).toEqual(expected);
done();
};
env.addReporter({jasmineDone: assertions});
env.execute();
});
});
it("shouldn't run disabled suites", function(done) {