mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Bring taxon and taxonomy factories from spree_core
This commit is contained in:
7
spec/factories/taxon_factory.rb
Normal file
7
spec/factories/taxon_factory.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
FactoryBot.define do
|
||||
factory :taxon, class: Spree::Taxon do
|
||||
name 'Ruby on Rails'
|
||||
taxonomy
|
||||
parent_id nil
|
||||
end
|
||||
end
|
||||
5
spec/factories/taxonomy_factory.rb
Normal file
5
spec/factories/taxonomy_factory.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
FactoryBot.define do
|
||||
factory :taxonomy, class: Spree::Taxonomy do
|
||||
name 'Brand'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user