Silence deprecation warning in a spec