fix spec warning on new rubies