How to Use RSpec Mocks & Stubs

Описание к видео How to Use RSpec Mocks & Stubs

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:

https://www.rubyguides.com/2018/10/rs...

Thanks for watching!

Комментарии

Информация по комментариям в разработке