#mock in specs is deprecated.