Canada on Rails: Dave Astels

Dave Astels on Behaviour Driven Development.. the step after TDD

Dave Astels’ Blog

Looks interesting now if only to see what a wookie looks like in real life

Act I

  • Not about creating a bunch of test, but doing design via tests.
  • Sapir-Wharf: language is important. The language you use effects and shapes your thoughts
  • Think Different: yes I do have a powerbook.
  • Not TDD but Behaviour DD.
  • Danial North coined the term.
  • classic mistake in TDD: do something look at state
  • never write a private method.
  • You should not be looking at the internal state of the object.
(state with a big red x thru it)

Act II

  • rSpec (also in gems)
  • a way to describe specs in code, then test against those specs
  • rather than assert_equal(a, b) do actual.should.equal expected
  • object.question? should be vocalized as “question, eh?”

The talk is bogging down into him showing every possible combo of this .should biz enabled by rSpec. This is great lesson about what I don’t think makes a good conf. talk

  • Mocking API
  • Mocks are auto verified, stubs are not

Act III

  • Code, Questions and Discussion

DSL – Domain-Specific Language

  • one more thing: shows up some code he hacked on the plane

April 13, 2006 (5 years, 10 months ago) | Tags: canada-on-rails




blog comments powered by Disqus