Fix cop offenses for Style/HashTransformation in spec directory
requested to merge karthik.sivadas/gitlab:pl-rubocop-style-hashtransformation-spec-directory into master
What does this MR do?
Fix cop offenses for Style/HashTransformation in spec directory
Contributes to #322739 (closed)