spree/spree — pull request #4852 by jhawthorn (2014-06-23 02:19:51+00:00)
Title: Simplify records created form line_item factory

Instead of creating a variant, which creates a product and a master variant
(thus creating two variants), just use the product factory and reference
variant created.

This makes core specs run very slightly faster on my machine (a few seconds
off of ~1:30) and I think this is closer to what people would expect
create(:line_item) to do.