spree/spree — pull request #5512 by divyatalwar (2014-10-21 14:20:32+00:00)
Title: remove extra dependent destroy from variants

Similar is the case with variants.If we are specifying dependent destroy in prices, no need of specifying it again for default price.

Also, for this the specs needs to be corrected.
I have removed a portion of specs as we cannot create another default price for the master variant
since variant has one default price.If we try to build another default price, it should set the previous default price's variant_id to nil as per rails.
But since we have kept a notnull constraint on variant_id in price model, so it should raise an exception.
So the corresponding specs needed to be removed.