mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
The OFN software was first written in Melbourne and a lot of spec code relies on the state Victoria being in the database. When we imported Spree code, it came with its default state Alabame in the USA. Having two different defaults is confusing and caused specs to fail in rare circumstances. Let's standardise it here which will also open the path to removing the seeding of test data and the exclusion of states and countries in the database cleaner.
10 lines
158 B
Ruby
10 lines
158 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :state, class: Spree::State do
|
|
name { "Victoria" }
|
|
abbr { "Vic" }
|
|
country
|
|
end
|
|
end
|