Fix rubocop warning 'TrailingComma' in each_with_index_do_code_spec.rb