arunoda/nodemock — Issue #14: Feature: assertThrows should not succeed when a "marked to fail" method was called on mock
Author: jigargosar
Created: 2012-01-06 11:17:03+00:00
State: open

* I really am missing this feature.

* I have marked a method to fail. And need to assert the fact in test that that method was never called.

* In this particular case, the mock throws an error, but the SUT catches it, since its running a loop, with try/catch in the loop.

* Thus my tests are all passing. :(

* Ideally if assertThrows would throw an exception when any method was called on mock that was marked for failure, this wouldn't let my test pass.

* Is it possible to easily integrate this feature?

thanks.