Fix ruby-1.8.7 syntax error in spec test for TravisCI