HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Use RSpec Mocks & Stubs

16,789 views November 2, 2018 12:23

Watch on YouTube
ChannelJesus Castello

Description from the creator

In this video you'll learn what are mocks in RSpec & how to use them correctly!

Mocks aren't stubs:

- A mock is for testing behaviour.
- A stub is for replacing calls with prebuilt responses.

Keep learning here:

rubyguides.com/2018/10/rspec-mocks/

Thanks for watching!

About this tutorial

Jesus Castello published this 12:23 video tutorial on November 2, 2018. It has been watched 16,789 times on YouTube.

Duration
12:23
Published
November 2, 2018
Views
16,789
Likes
396

Tags

Share

This tutorial in other languages