Created
June 25, 2018 18:22
-
-
Save stalniy/363feb11b333537997ad09e18a826482 to your computer and use it in GitHub Desktop.
Lazy vars short 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
describe('Article', function() { | |
subject(function() { | |
return Article.create({ title: 'BDD lazy vars' }); | |
}); | |
its('status', () => is.expected.to.equal('draft')); | |
// or even better | |
it(() => is.expected.to.be.a.draft); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment