RSpec 2.0 cheat sheet by example

The Ruby developers know and hear a lot of buzz about RSpec BDD framework. The RSpec specifications code is so easy to read, but for my it is often hard to write. So I intend to produce a small cheat-sheet for RSpec syntax for myself.

Most of it come from the RSpec Book in rather unusual way. As a RSpec itself (unfortunately not runnable for now).

Please feel free to use it in any way you want and correct the mistakes.

So here we go: