Created
March 8, 2012 02:16
-
-
Save lightsofapollo/1998107 to your computer and use it in GitHub Desktop.
lets for javascript tests??
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SubjectClass = require('subject-class'); | |
describe("NewLets", function(){ | |
var subject; | |
stage('subject', function(){ | |
subject = new SubjectClass; | |
}); | |
it("should be a subject", function(){ | |
expect(subject).to.be.a(SubjectClass); | |
}); | |
describe("Nested", function(){ | |
stage('subject', function(){ | |
subject = new SubjectClass({isFoo: true}); | |
}); | |
it('should have isFoo', function(){ | |
expect(subject.isFoo).to.be(true); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that the intent is so the "Nested" describe will call stage('subject') only once the higher level stage will not be called.