wrap test that changes inflections in with_dup
Merge pull request #13084 from lihanli/series-singularize-fix

Fix an activesupport inflector test changing the inflector but not reverting all its changes afterwards