Structuring Tests - Testing Rails with RSpec Tutorial pt 2

Опубликовано: 01 Август 2026
на канале: Rails Pro
1,094
26

This video covers:
0:15 - Context blocks
4:07 - RSpec let
6:16 - described_class
7:17 - subject
7:59 - Simplifying tests with subject and 1-line expectations

In this video I'll cover how to use context blocks, within RSpec describe blocks, to test different cases. I'll cover RSpec's let feature and explain how to use it to simplify your tests. Lastly I'll cover RSpec's `described_class` and `subject` methods and explain how to use them with a real world example.