Get rid of deprecation warning when running specs