Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Use single quotes.

Matthew Kennedya02fbc4014b0
diff --git a/core/lib/spree/testing_support/order_walkthrough.rb b/core/lib/spree/testing_support/order_walkthrough.rb
index 8e6e4ed661..a65bc21ba9 100644
--- a/core/lib/spree/testing_support/order_walkthrough.rb
+++ b/core/lib/spree/testing_support/order_walkthrough.rb
@@ -1,9 +1,10 @@
class OrderWalkthrough
def self.up_to(state)
store = if Spree::Store.exists?
- # Ensure default store is used
+ # Ensure the default store is used
Spree::Store.default || FactoryBot.create(:store, default: true)
else
+ # Create a default store
FactoryBot.create(:store, default: true)
end
@@ -63,7 +64,7 @@ class OrderWalkthrough
amount: order.total
# TODO: maybe look at some way of making this payment_state change automatic
- order.payment_state = "paid"
+ order.payment_state = 'paid'
order.next!
end