~/talk

TDD Workshop: Mocking, Stubbing, and Faking External Services

Talkat RailsConf 2013 · 2013-04-29..05-02· [testing, ruby-on-rails]
links:none on file
slides:none on file

Workshop walks through writing failing specs and making them pass using shoulda matchers and RSpec, asserting model constraints like validates :name, presence: true, uniqueness: true. It shows unit tests for presence and uniqueness, how failures look, adding database-level constraints, and writing a custom validator with its own spec. Seven modules are planned and one module is completed; examples run and tests pass during the demo.

AI-written summary · about

  1. 0:00TDD workshop intro
  2. 1:00Testing validations with Shoulda
  3. 3:55Adding validations to pass
  4. 5:20Database vs model validations
  5. 8:23Custom validations and tests
  6. 12:23Preventing validation removal
  7. 13:50Workshop resources
~/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.