~/talk

Understanding Rails test types in RSpec

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

Walks through Rails + RSpec live coding that uses outside-in testing, writing a failing feature/controller/model specs trio against a to‑do app, creates completed and incomplete todos, implements a controller instance variable and a model scope, and runs the suite until everything is green. Demonstrates the actual assertions and helpers used to drive a fake browser and controller assigns, shows the refactor into a Todo.complete_todos method, and proves the change works end to end.

AI-written summary · about

  1. 0:00Start
  2. 1:35Feel free to ask questions
  3. 5:07Rails makes Testing is hard
  4. 5:39Rails Test Types
  5. 5:49Model Controller Feature
  6. 26:06This is not my first time in Atlanta
  7. 26:28IT TASTES LIKE SUGAR AND THE APOCALYPSE
~/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.