In my last year of RubyOnRails work I have learn more about RSpec and significantly changed how I write my specs.
I will present a review of some new syntax and some of the patterns I have been using. And show some examples where I think it has improved my specs readability.
Some examples of the new syntax are:
- let, describe, and context
- implicit subjects
- shared_context (optionally in their own modules)
To put this into practice we will also try the "String Calculator Code Kata", http://osherove.com/tdd-kata-1/ using TDD and RSpec.
Please bring a laptop (with Ruby installed) if you can, and we'll match up people pair program through the kata.
The Rspec install is as easy as 'sudo gem install rspec', you can pre-install or we'll just do it during the presentation.