Fix rubocop warning 'TrailingComma' in each_do_code_spec.rb