Refs #6421: Fix spec directory rubocop offenses.