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.

[SD-1280] Fix currency code in spec

piotrpankoa69c05f642d8
diff --git a/frontend/spec/features/products_spec.rb b/frontend/spec/features/products_spec.rb
index 266c7ce482..d810653e0d 100644
--- a/frontend/spec/features/products_spec.rb
+++ b/frontend/spec/features/products_spec.rb
@@ -317,7 +317,7 @@ describe 'Visiting Products', type: :feature, inaccessible: true do
it 'is not able to put a product without a current price in the cart' do
product = FactoryBot.create(:base_product, description: nil, name: 'Sample', price: '19.99')
- store.update(default_currency: 'CAN')
+ store.update(default_currency: 'CAD')
Spree::Config.show_products_without_price = true
visit spree.product_path(product)
expect(page).to have_content 'This product is not available in the selected currency.'