Fix typo in "categeory" (additional e) and update specs

This commit is contained in:
drummer83
2024-08-23 13:20:46 +02:00
parent e2423ad612
commit 7e7ab2e36d
3 changed files with 4 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ en:
errors:
models:
enterprise_fee:
inherit_tax_requires_per_item_calculator: "Inheriting the tax categeory requires a per-item calculator."
inherit_tax_requires_per_item_calculator: "Inheriting the tax category requires a per-item calculator."
spree/image:
attributes:
attachment:

View File

@@ -47,7 +47,7 @@ RSpec.describe EnterpriseFee do
)
expect(subject.save).to eq false
expect(subject.errors.full_messages.first).to eq(
"Inheriting the tax categeory requires a per-item calculator."
"Inheriting the tax category requires a per-item calculator."
)
end
end

View File

@@ -154,7 +154,7 @@ RSpec.describe '
# editing to an invalid combination
select 'Flat Rate (per order)', from: "#{prefix}_calculator_type"
expect{ click_button 'Update' }.not_to change { fee.reload.calculator_type }
expect(page).to have_content "Inheriting the tax categeory requires a per-item calculator."
expect(page).to have_content "Inheriting the tax category requires a per-item calculator."
end
end
@@ -299,7 +299,7 @@ RSpec.describe '
end
context "an error message is displayed" do
message = 'Inheriting the tax categeory requires a per-item calculator.'
message = 'Inheriting the tax category requires a per-item calculator.'
it_behaves_like "setting it up", 'Inherit From Product',
'Flat Rate (per order)', message, 0
end