Fix rubocop warning 'TrailingComma' in code_spec