just stub it with an empty function, and then use "yieldTo" on the stub in your test (see below)