Some exmples written in rspec that hopefully will show how tdd is a powerful base for refactoring and how to integrate that with a continuous integration server