Sergii Makagon Ruby Developer with more than 16 years of experience. I like TDD, Clean Code, Design Patterns and Domain-Driven Design. Read more. Follow @makagon Hello! I'm back from my lovely trip to San-Francisco and eager to keep writing more articles for this blog. Today we will try to figure out the difference between mocks and stubs. Let's define what is mock and what is stub first. Since we