Fix rubocop warning 'TrailingComma' in if_code_after_spec.rb