Fixed doc and test model declaration to use ruby 1.8.7 syntax