Test Substitute

Join guest chef Nathan Ladd to learn about a third way between full-stack and mocked-out isolation testing: test substitutes that are maintained along…

StringIO Test Fake

Today we learn about how the StringIO class can help us test methods that work with files.

Mocking Smells 4

As we continue examining code smells in mockist tests, today we turn our attention to code that mocks out core I/O calls.

Instance Spy

Afraid your RSpec examples are giving you a false sense of security? Today we'll learn how to restore trust using verifying doubles.

Mocking Smells 3

Some more indications that you might not be using Mock Objects to best advantage.

Mocking Smells 2

Today we continue in our series examining mock-object code smells.

Mocking Smells 1

Test doubles are a powerful but easy-to-misuse tool for design. In this episode, we look at some tell-tale signes that mocks aren't being used effecti…

Caching an API

Web services are slow to request and often have rate caps. A cache can cut down on requests to remote APIs. But how best to design the interface betwe…