From 3259db69f062004631b9fb2c15c64d3c54dd935d Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Fri, 14 Jun 2019 13:43:30 +0100 Subject: [PATCH] Remove unnecessary code, this code as been accepted in spree code base and included in spree v1.2 --- spec/factories/product_factory.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spec/factories/product_factory.rb b/spec/factories/product_factory.rb index 9c97b92f7b..897d95d477 100644 --- a/spec/factories/product_factory.rb +++ b/spec/factories/product_factory.rb @@ -57,11 +57,6 @@ FactoryBot.modify do end factory :base_product do - # Fix product factory name sequence with Kernel.rand so it is not interpreted as a Spree::Product method - # Pull request: https://github.com/spree/spree/pull/1964 - # When this fix has been merged into a version of Spree that we're using, this line can be removed. - sequence(:name) { |n| "Product ##{n} - #{Kernel.rand(9999)}" } - supplier { Enterprise.is_primary_producer.first || FactoryBot.create(:supplier_enterprise) } primary_taxon { Spree::Taxon.first || FactoryBot.create(:taxon) }