remove duplicate method

This method is already present in helper.rb .

https://github.com/rails/rails/blob/master/activerecord/test/cases/helper.rb#L52-L57