Video

Want to see the full-length video right now for free?

Sign In with GitHub for Free Access

Notes

Joe and Gabe review the four types of test doubles: stubs, mocks, spies and fakes. Learn what the key differences are between each type, as well as when you'd want to consider using them. See examples written using rspec-mocks, as well as an example of a robust fake for braintree.

Also, check out our new Test Doubles Trail to practice using stubs, mocks, spies, and fakes with RSpec.