Fix rubocop warning 'TrailingComma' in ternary_operator_spec.rb