Fix for rake spec test failing on Travis