Delete all variants from test product not just the first one

This commit is contained in:
Luis Ramos
2020-06-01 20:36:07 +01:00
parent 1e3bf7fec4
commit 2d7f1ce283

View File

@@ -5,7 +5,7 @@ describe ProductStock do
context "when product has no variants" do
before do
product.variants.first.destroy
product.variants.destroy
product.variants.reload
end