~/talk

Javascript TDD for Rubyists

Talkat Ruby on Ales 2011 · 2011-03-24..03-25· [javascript, testing]
slides:none on file

Shows how to use Jasmine with RSpec in Rails by installing the jasmine gem and running the Rails generator, running the browser runner on port 8888 or automating with rake jasmine:ci which uses Selenium, and how RSpec can write view fixtures into tmp for specs to use. Demonstrates spies and stubs including andCallThrough, matchers like toBeTruthy vs falsy quirks, and expect(...).toHaveBeenCalledWith arguments, with tests that run hundreds in a tenth of a second.

AI-written summary · about

  1. 0:00Start
  2. 4:15Drives Good Design
  3. 5:51Focus and Process
  4. 7:41"Free" Documentation
  5. 9:21Ripped Off RSpec
  6. 10:00RSpec Integration
  7. 12:44$ rake jasmine
  8. 14:47Spec Suites
  9. 15:27Examples / Expectations
  10. 19:11Custom Matchers
  11. 21:58Stubbing Values
  12. 23:50Message Expectations
  13. 28:15Error Expectations
  14. 29:46Simulating Errors
~/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.