Tuesday, 6 November 2007

RSpec My Models

The concept is dead easy. The Favour Bank (from a model perspective) is simple so speccing it our with RSpec is a doddle. It also makes it easier for me to form the DSL'ish sytax in my head so getting the models to interact with each other becomes more humanised....

ben.will_do_the_favour."Ill lend you 500 pounds".for(helen)

Much nicer.

And good karma too :-)

No comments: