Fix rubocop warning in the spec