mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix typo in "categeory" (additional e) and update specs
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user