diff --git a/lib/tasks/sample_data/product_factory.rb b/lib/tasks/sample_data/product_factory.rb index 962a7b1891..9a0fe4ec5a 100644 --- a/lib/tasks/sample_data/product_factory.rb +++ b/lib/tasks/sample_data/product_factory.rb @@ -15,7 +15,7 @@ class ProductFactory def product_data(enterprises) vegetables = Spree::Taxon.find_by(name: 'Vegetables') fruit = Spree::Taxon.find_by(name: 'Fruit') - meat = Spree::Taxon.find_by(name: 'Meat and Fish') + fungi = Spree::Taxon.find_by(name: 'Fungi') producers = enterprises.select(&:is_primary_producer) distributors = enterprises.select(&:is_distributor) [ @@ -34,10 +34,10 @@ class ProductFactory distributor: distributors[0] }, { - name: 'Beef - 5kg Trays', + name: 'Mushrooms', price: 50.00, supplier: producers[1], - taxons: [meat], + taxons: [fungi], distributor: distributors[0] }, { diff --git a/lib/tasks/sample_data/taxon_factory.rb b/lib/tasks/sample_data/taxon_factory.rb index 4c9878af81..9334bf6991 100644 --- a/lib/tasks/sample_data/taxon_factory.rb +++ b/lib/tasks/sample_data/taxon_factory.rb @@ -6,7 +6,7 @@ class TaxonFactory def create_samples log "Creating taxonomies:" taxonomy = Spree::Taxonomy.find_or_create_by!(name: 'Products') - taxons = ['Vegetables', 'Fruit', 'Oils', 'Preserves and Sauces', 'Dairy', 'Meat and Fish'] + taxons = ['Vegetables', 'Fruit', 'Oils', 'Preserves and Sauces', 'Dairy', 'Fungi'] taxons.each do |taxon_name| create_taxon(taxonomy, taxon_name) end