Remove duplicate modify entry in factories

This commit is contained in:
luisramos0
2019-06-14 13:59:24 +01:00
parent 5ca382be42
commit 13d41dc1aa

View File

@@ -183,9 +183,7 @@ FactoryBot.modify do
# Prevent inconsistent ordering in specs when all option types have the same (0) position
sequence(:position)
end
end
FactoryBot.modify do
factory :stock_location, class: Spree::StockLocation do
# keeps the test stock_location unique
initialize_with { DefaultStockLocation.find_or_create }