Fix test cases for inflector.rb
`yield` was missing in #with_dup, due to which 57 assertions were not running
in real, and all tests were passing by default.
Error was introduced in commit - 31ceb5e.
Merge pull request #15316 from akshay-vishnoi/test-cases

Fix test cases for inflector.rb