spree/spree — pull request #1102 by kunalchaudhari (2012-02-06 01:40:24+00:00)
Title: 1095 - fix payment_state when emptying cart

line_items are empty when user empties cart. So check this condition while updating payment_state. Fixing this issue broke to two tests which checks case for sufficient and insufficient payment. Those tests are also updated and are passing now.