fixes spec syntax to make tests pass on ruby 1.8.7