This video is only a short sample, but you can access the full version and all our other great content by subscribing.



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.