Fixed specs not executing ruby 1.8.7