~/workshop

Clean RSpec: A Workshop on Ruby Testing Craftsmanship

Workshopat RubyConf 2021 · 2021-11-08..11-10· [testing, ruby]
slides:none on file

Workshop shows concrete RSpec refactors: it uses the gilded rose kata and live code exercises to rename ambiguous subject, replace hidden setup with let bang or explicit arrange blocks, and reorganize specs into clear three-phase test pattern arrange/act/assert and focused describe/context/it groups. It argues against expect any_instance_of and shared examples, demonstrates replacing implementation-heavy doubles with injected stubs or real collaborators, and leaves working examples and a repo to fork and practice.

AI-written summary · about

  1. 0:00Start
  2. 4:37Code Kata
  3. 8:24Audience Participation
  4. 9:57Integration Test
  5. 10:55The Magic Tricks of Testing
  6. 13:10Testing a Query Method and How Do You Go about Testing a Command Method
  7. 30:04Arrange Phase
  8. 35:35Rid of Extraneous Assertions
  9. 36:21Three-Phase Test Pattern
  10. 36:59The Three-Phase Test Pattern
  11. 39:47Is It Recommended to Nest Context
  12. 44:18Shared Examples
  13. 50:59Test Doubles
  14. 51:42Breaking Up with Your Test Suite
  15. 52:05Value of Tdd
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.