[spec] rubocop fixes

5 jobs for bug11327 in 4 minutes (queued for 1 second)