-
Notifications
You must be signed in to change notification settings - Fork 2
Home
kerryb edited this page Sep 12, 2010
·
2 revisions
This code was used in a presentation on BDD and RSpec, and probably won’t make much sense on its own. It’s a partial implementation of a trivial caching hash class, with file and memory stores behind it.
There are tags for each step through the development, with some points of interest being:
- step4: nested specs
- step6: pending spec
- step7: specifying exceptions
- step12: shared behaviour
There are also two files in master — bad_spec.rb
and good_spec.rb
, which both pass, but one of which is intended to show better practice.