mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Fix various spec
This commit is contained in:
@@ -16,8 +16,10 @@ module Addressing
|
||||
end
|
||||
|
||||
def zone
|
||||
zone = Spree::Zone.find_or_create_by!(name: ENV.fetch('CHECKOUT_ZONE'))
|
||||
zone.members.create!(zoneable: country) unless zone.zoneables.include?(country)
|
||||
zone = Spree::Zone.find_or_create_by(name: ENV.fetch('CHECKOUT_ZONE'))
|
||||
zone.members << Spree::ZoneMember.create(zoneable: country) unless
|
||||
zone.zoneables.include?(country)
|
||||
zone.save!
|
||||
zone
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user