Fixed specs so they run on ruby 1.9.x as well as 1.8.7