Fix rubocop warning 'TrailingComma' in each_digit_with_index_spec