Fix rubocop warnings in the specs