Fix spec to match the deprecation change in the last commit.