I've been playing a lot with RSpec mocks and stubs in Rails recently. They are confusing and there are so many ways you can use them. I'd like to talk about the main differences between mocks and stubs, demonstrate them through a sample Rails project. ========================= Here is more info on what I'll cover: We'll be looking at some basic Ruby mocking/stubbing examples. My goal is to describe the difference between the two, focusing on the technique and not on the different mocking tools. I also built a Twitter client in Rails. I'll use that app to show you how http stubs are used to fake out service calls. Cucumber will run against this app without ever hitting the Twitter API servers. Hope to see you there!