Closed scharf closed 9 years ago
Both Session
and Session::destroy
should be synchronous methods. In mocha, we should be able to get away with omitting done—but I'm probably missing something, here!
Would you mind detailing the testing setup (runner, version) and any other details that require the use of done
?
you are right! There is no need for calling done()! It was another problem with my setting.
The documented example does not work as expected, because the
before
does not calldone
.It should look like: