Mocks are interesting, but verifying that methods were called on the mock seems like testing side effects rather than behavior.
-
-
@sgrif sure, but ensuring a method was called doesn't guarantee the side effect occurred. Test that the side effect happened. -
@tenderlove What if the side effect is charging a credit card? - 9 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.