RubyConf Mini 2022: Weaving and seaming mocks by Vladimir Dementyev

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=-ExPO-FCKQA



Duration: 36:27
115 views
3


To mock or not mock is an important question, but let's leave it apart and admit that we, Rubyists, use mocks in our tests.

Mocking is a powerful technique, but even when used responsibly, it could lead to false positives in our tests (thus, bugs leaking to production): fake objects could diverge from their real counterparts.

In this talk, I'd like to discuss various approaches to keeping mocks in line with the actual implementation and present a brand new idea based on mock fixtures and contracts.




Other Videos By Confreaks


2023-03-01RubyConf Mini 2022: Syntax Tree by Kevin Newton
2023-03-01RubyConf Mini 2022: Lightning Talks
2023-03-01RubyConf Mini 2022: Who Wants to be a Ruby Engineer? by Drew Bragg
2023-03-01RubyConf Mini 2022: Keynote by Barbara Tannenbaum
2023-03-01RubyConf Mini 2022: Empathetic Pair Programming with Nonviolent Communication by Stephanie Minn
2023-03-01RubyConf Mini 2022: RubyGems.org MFA: The Past, Present and Future by Jenny Shen
2023-03-01RubyConf Mini 2022: Keynote: Learning DNS by Julia Evans
2023-03-01RubyConf Mini 2022: Zen and the Art of Incremental Automation by Aji Slater
2023-03-01RubyConf Mini 2022: Ruby Office Hours with Shopify Engineering by Rose Wiegley, Ufuk Kayserilioglu
2023-03-01RubyConf Mini 2022: Splitwise Sponsor Session: Declare Victory with Class Macros by Jess Hottenstein
2023-03-01RubyConf Mini 2022: Weaving and seaming mocks by Vladimir Dementyev
2023-01-30DevOpsDays Boston 2022: Thomas Stringer - Zero to Secure: Using Open Service Mesh to Easily...
2023-01-30DevOpsDays Boston 2022: Andreas Grabner - DevSecOps by Default: What have, can and must we learn...
2023-01-30DevOpsDays Boston 2022: Kavitha Govindarajulu - Evaluating Your Toolbox
2023-01-30DevOpsDays Boston 2022: Steve McGhee, James Brookbank - Enterprise Roadmap for SRE
2023-01-30DevOpsDays Boston 2022 - We can’t all be Shaq: why it’s time for the SRE hero... by Malcolm Preston
2023-01-30DevOpsDays Boston 2022: Gad Salner- How to scale a unicorn-building engineering team (and stay sane)
2023-01-30DevOpsDays Boston 2022: Daniel Kim - Achieving 99.99% uptime with Open Source Observability
2023-01-30DevOpsDays Boston 2022: Peter Chestna - Feedback: You don't have to be bad to get better
2023-01-30DevOpsDays Boston 2022: Kam Lasater - How to Fail at Serverless (without even trying)
2023-01-30DevOpsDays Boston 2022: Adarsh Shah - From Infrastructure as Code to Environment as Code: ...



Tags:
Ruby
RubyConf
RubyConf Mini
Ruby Language
Ruby on Rails