モカのbeforeEachブロックできれいに動作するすべてのシノンスパイモックとスタブを簡単にリセットする方法はありますか?
サンドボックスはオプションだと思いますが、これにサンドボックスを使用する方法がわかりません
beforeEach ->
sinon.stub some, 'method'
sinon.stub some, 'mother'
afterEach ->
# I want to avoid these lines
some.method.restore()
some.other.restore()
it 'should call a some method and not other', ->
some.method()
assert.called some.method