News for hackers. Stuff that matters.
Re:Where is Ruby Headed in 2021? by JohnBooty on Friday November 19, 2021 @02:43PM (#29281387)
It is of course super common. Unit tests should be stubbing out as much as possible/reasonable.

The presumption is that we're talking about a well rounded test suite with both unit tests and integration tests, and the integration tests would indeed be catching the fact that A is passing entirely the wrong thing to B.

Of course, this does mean we're leaning heavily on the test suite here. But, in any nontrivial application I hope that we would have a robust test suite, right? Otherwise we're going to have some problems whether we're statically or dynamically typed.

Re:Where is Ruby Headed in 2021? by emodendroket on Friday November 19, 2021 @09:35PM (#29285093)
Over time I have come to view mock- and stub-heavy tests as next to worthless.