When /^I enter and submit the details for a valid (quote|new business)/ do |type| #cucumber
transaction_type = type == 'quote' ? :quote : :new_business
workflow_answerer.transaction_type = transaction_type
workflow_answerer.enter_valid_policy
end
这里面transaction_type = type == 'quote' ? :quote : :new_business又是什么意思呢?