Fix spec on Travis CI