spree/spree — pull request #5216 by krigar (2014-08-15 11:47:13+00:00)
Title: When restarting checkout, go to cart and then call next to trigger transition hooks

I've implemented some transition hooks that I'd like to trigger when someone updates their cart and restarts the checkout flow. The problem is that calling `checkout_steps.first` simply updates the order state column to `address`, so when a customer then clicks checkout, any `_transition from: :cart` and `_transition to: :address` hooks are ignored.

This code change results in 3 failing spec tests, although I can't reproduce the failures in higher level feature tests or using the actual site.

First, does anyone see any problems with this change or a better way of accomplishing the same task; and secondly, how to make the tests pass.