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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix incorrect indefinite articles (a → an) across docs and specs (#13888)
Kenta Ishizaki5e44e7b7aa15
diff --git a/docs/api-reference/platform/authentication.mdx b/docs/api-reference/platform/authentication.mdxindex a9b6a1ac9e..0a2a49028c 100644--- a/docs/api-reference/platform/authentication.mdx+++ b/docs/api-reference/platform/authentication.mdx@@ -16,7 +16,7 @@ To generate a valid token for the Platform API, you'll first need to create an a<img src="/images/Platform API 3.png"/>-4. Save your Client ID and Secret - you'll later use it to generate a OAuth token to access the platform API+4. Save your Client ID and Secret - you'll later use it to generate an OAuth token to access the platform API<img src="/images/Platform API 4.png"/>diff --git a/docs/api-reference/storefront.yaml b/docs/api-reference/storefront.yamlindex 7f04e7071c..81c968c64e 100644--- a/docs/api-reference/storefront.yaml+++ b/docs/api-reference/storefront.yaml@@ -171,7 +171,7 @@ paths:address:$ref: "#/components/schemas/AddressPayload"examples:- Create a Address:+ Create an Address:value:address:firstname: Markdiff --git a/docs/user/manage-products/export-products.mdx b/docs/user/manage-products/export-products.mdxindex e4ca2b9c61..0af58bb85e 100644--- a/docs/user/manage-products/export-products.mdx+++ b/docs/user/manage-products/export-products.mdx@@ -15,7 +15,7 @@ Click on **Export** in the top right corner.-This opens a export modal that gives you two options to choose from:+This opens an export modal that gives you two options to choose from:- **Filtered Records**: Export only filtered records matching the search criteria- **All**: Export all records (can be slow for large datasets)diff --git a/spree/core/app/models/spree/order/checkout.rb b/spree/core/app/models/spree/order/checkout.rbindex f08a66a8fd..12ad2893a5 100644--- a/spree/core/app/models/spree/order/checkout.rb+++ b/spree/core/app/models/spree/order/checkout.rb@@ -317,8 +317,8 @@ module Spree# attributes for a single payment and its source, discarding attributes# for payment methods other than the one selected#- # In case a existing credit card is provided it needs to build the payment- # attributes from scratch so we can set the amount. example payload:+ # If an existing credit card is provided, build the payment attributes+ # from scratch so the amount can be set. Example payload:## {# "order": {diff --git a/spree/core/spec/lib/spree/core/controller_helpers/store_spec.rb b/spree/core/spec/lib/spree/core/controller_helpers/store_spec.rbindex ae38b3f189..82dd731545 100644--- a/spree/core/spec/lib/spree/core/controller_helpers/store_spec.rb+++ b/spree/core/spec/lib/spree/core/controller_helpers/store_spec.rb@@ -59,7 +59,7 @@ describe Spree::Core::ControllerHelpers::Store, type: :controller doendend- context 'on a object that accepts a single store' do+ context 'on an object that accepts a single store' dobefore { allow(controller).to receive(:current_store).and_return(store) }context 'when no store is present' dodiff --git a/spree/core/spec/models/spree/calculator_spec.rb b/spree/core/spec/models/spree/calculator_spec.rbindex d5c18d1364..6967115637 100644--- a/spree/core/spec/models/spree/calculator_spec.rb+++ b/spree/core/spec/models/spree/calculator_spec.rb@@ -28,7 +28,7 @@ describe Spree::Calculator, type: :model doendend- context 'with a arbitrary object' do+ context 'with an arbitrary object' doit 'calls the correct compute' dos = 'Calculator can all'expect(subject).to receive(:compute_string).with(s)@@ -56,7 +56,7 @@ describe Spree::Calculator, type: :model doendend- context 'with a arbitrary object' do+ context 'with an arbitrary object' doit 'raises NotImplementedError' dos = 'Calculator can all'expect { subject.compute(s) }.to raise_error NotImplementedError, /Please implement \'compute_string\(string\)\' in your calculator/diff --git a/spree/core/spec/models/spree/gateway_spec.rb b/spree/core/spec/models/spree/gateway_spec.rbindex 5ec1226908..005dde835d 100644--- a/spree/core/spec/models/spree/gateway_spec.rb+++ b/spree/core/spec/models/spree/gateway_spec.rb@@ -58,7 +58,7 @@ describe Spree::Gateway, type: :model docreate(:payment, order: order, source: cc, payment_method: has_card)end- it 'finds credit cards associated on a order completed' do+ it 'finds credit cards associated with a completed order' doallow(payment.order).to receive_messages completed?: trueexpect(no_card.reusable_sources(payment.order)).to be_emptydiff --git a/spree/core/spec/models/spree/preferences/preferable_spec.rb b/spree/core/spec/models/spree/preferences/preferable_spec.rbindex ea0e39c91a..369317a38c 100644--- a/spree/core/spec/models/spree/preferences/preferable_spec.rb+++ b/spree/core/spec/models/spree/preferences/preferable_spec.rb@@ -116,7 +116,7 @@ describe Spree::Preferences::Preferable, type: :model docolor: 'green')end- it 'builds a array of deprecated preferences' do+ it 'builds an array of deprecated preferences' doexpect(@b.deprecated_preferences).to eq([{ name: :color,message: 'Please use colour instead' }])enddiff --git a/spree/core/spec/models/spree/product/scopes_spec.rb b/spree/core/spec/models/spree/product/scopes_spec.rbindex 479e2146ce..686d5642cd 100644--- a/spree/core/spec/models/spree/product/scopes_spec.rb+++ b/spree/core/spec/models/spree/product/scopes_spec.rb@@ -502,7 +502,7 @@ describe 'Product scopes', type: :model dodescribe '.with_option' dosubject(:with_option) { Spree::Product.method(:with_option) }- it "finds by a option type's name" do+ it "finds by an option type's name" doexpect(with_option.call(option_type.name).count).to eq(1)end@@ -510,7 +510,7 @@ describe 'Product scopes', type: :model doexpect(with_option.call('fake').count).to eq(0)end- it 'finds by a option type' do+ it 'finds by an option type' doexpect(with_option.call(option_type).count).to eq(1)end@@ -526,7 +526,7 @@ describe 'Product scopes', type: :model dodescribe '.with_option_value' dosubject(:with_option) { Spree::Product.method(:with_option_value) }- it "finds by a option type's name" do+ it "finds by an option type's name" doexpect(with_option.call(option_type.name, option_value.name).count).to eq({ product.id => 1 })end@@ -534,7 +534,7 @@ describe 'Product scopes', type: :model doexpect(with_option.call('fake', 'fake').count).to eq({})end- it 'finds by a option type' do+ it 'finds by an option type' doexpect(with_option.call(option_type, option_value.name).count).to eq({ product.id => 1 })end