Selectively running tests can be a lifesaver in a large codebase. This episode covers how to run just the tests you care about in both MiniTest and RSpec - including …
Month: January 2013
Episode #052: The End of Mocking
At the borders of our systems, mockist testing hits a point of diminishing returns. In this episode we take a look at when to stop mocking and start integration testing.
Episode #050: Include Namespace Module
Sometimes a utility module is overkill. In this episode, we make a namespace module do double-duty.
Episode #049: Utility Function
Some functions are useful in many different contexts. In this episode we'll explore some ways to make them available both to library code and to client code of a library.
Episode #047: FFI Part 2: Smoke Test One
In part 2 of this series, we buy ourselves some peace of mind with a simple smoke test. The code for this episode can be found here: https://github.com/avdi/pulse-ffi/tree/RubyTapas047
Episode #046: Gem Love Part 2
In Part 2 of this series chronicling the creation of an app, I establish a test-driven rhythm, starting with a high-level acceptance test. The source code for this episode is …
Episode #045: Hash Default Value
This cautionary episode demonstrates and explains a Hash gotcha that often comes as a surprise.