Originally posted on the mailing list by Andreas Haller, reposting here so that the "qunit-bdd" tag will be available for others to use.
ember-qunit adds a handy
moduleFor
helper which one can use as an alternative to QUnit'smodule
function. Now ember-qunit abstracts things so that i never have to use the module function and i don't know if i could. My question is twofold:
- Does
describe
defacto act the same asmodule
?- How can i use ember-qunit's
moduleFor
/moduleForComponent
?If there is no solution for #2 yet something like
describe(moduleFor('controller:posts'), function() { … })
would be nice.