spree/spree — pull request #3819 by nishant-cyro (2013-10-03 10:01:43+00:00)
Title: Verify insufficient_stock_lines while resuming an order.

Steps to Reproduce

1. Create an order.
2. Add a product in it and complete it.
3. Cancel the order from admin end.
4. Now, go to the stock management of the product and made it out of stock.
5. Come back to the canceled order and resume it.

Expectation - it shouldn't be resumed as product doesn't have sufficient quantity.
Actual - It is resumed. And when you see the stock items of the product, its in negative.