Fixed spec syntax to be compatible with Ruby 1.8