Fix specs according to Rubocop complaints.