Refs #6421: Fix spec directory rubocop offenses.
Merge pull request #4719 from ehelms/refs-6421

Refs #6421: Fix spec directory rubocop offenses.