We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 320e06b + faa359a commit 9a13ba2Copy full SHA for 9a13ba2
1 file changed
core/lib/spree/testing_support/order_walkthrough.rb
@@ -10,7 +10,7 @@ def self.up_to(state, user: nil)
10
def up_to(state, user: nil)
11
# Need to create a valid zone too...
12
@zone = ::FactoryBot.create(:zone)
13
- @country = ::FactoryBot.create(:country)
+ @country = Spree::Country.find_by(iso: "US") || ::FactoryBot.create(:country)
14
@state = ::FactoryBot.create(:state, country: @country)
15
16
@zone.members << Spree::ZoneMember.create(zoneable: @country)
0 commit comments