Use existing product factory, the custom product is not needed here

This commit is contained in:
Luis Ramos
2020-09-01 17:13:07 +01:00
parent 653b71dbd4
commit 2cb6124b7a

View File

@@ -5,7 +5,7 @@ require 'spec_helper'
describe Spree::Asset do
describe "#viewable" do
it "touches association" do
product = create(:custom_product)
product = create(:product)
asset = Spree::Asset.create! { |a| a.viewable = product.master }
product.update_column(:updated_at, 1.day.ago)