title: What's a good way to reuse test code using Jasmine?
body: <p>I'm using the <a href="http://jasmine.github.io/" rel="noreferrer">Jasmine</a> BDD Javascript library and really enjoying it.  I have test code that I'd like to reuse (for example, testing multiple implementations of a base class or running the same tests in a slightly different context) and I'm not sure how to do it using Jasmine. I know that I could move code out of the jasmine functions and into reusable classes but I like the way the code reads interspersed with the Jasmine functions (describe, it) and I don't want to separate the specs from the test code unless I have to.  Has anyone out there using Jasmine come across this issue and how have you handled it?</p>