Mocks are interesting, but verifying that methods were called on the mock seems like testing side effects rather than behavior.
-
-
@sgrif not really, imo. You pass in a substitute to the test subject, which is entirely oblivious as to whether it hits a payment gateway. -
@realntl Same with a test double (aka a mock)? You're passing in a fake object to stand in for the real one, and asserting the side effect - 5 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.