minor optimization: replace binary case statement w/ ternary operator
minor optimization: replace binary case statement w/ ternary operator

phinze/rspec,alitalia/rspec,dchelimsky/rspec,dchelimsky/rspec,mrkn/rspec,alitalia/rspec