~/talk

RSpec: It's Not Actually Magic

Talkat RailsConf 2015 · 2015-04-21..04-23· [testing, ruby]
slides:none on file

Shows RSpec source step by step so the DSL stops feeling magical: how describe/it/expect/eq map to example groups, expectation targets and matchers, how blocks run via module_exec and class_exec, how implicit predicates and the implicit matcher work, and how mocks install method double proxies into an object’s singleton class to capture calls and verify expectations during teardown. Includes the emoji-as-syntax demo and concrete code paths so the mechanics and tradeoffs are clear.

AI-written summary · about

  1. 0:00Start
  2. 2:07Reasons Why Our Spec Is Complicated
  3. 26:06Implicit Matcher
  4. 31:55Ruby Method Lookup
  5. 32:24The Singleton Class
  6. 37:36Rspec Documentation
~/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.