Mocks are interesting, but verifying that methods were called on the mock seems like testing side effects rather than behavior.
-
-
Replying to @tenderlove
@tenderlove Sometimes the behavior of an object is the side effects it has.1 reply 0 retweets 3 likes -
Replying to @tenderlove
@tenderlove What if the side effect is charging a credit card?3 replies 0 retweets 1 like -
Replying to @sgrif
@sgrif@tenderlove you can build a substitute for this.1 reply 0 retweets 0 likes
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.