Fix spec failure on Travis