From cbb62538033847db27f2df82c7f5004bafb20265 Mon Sep 17 00:00:00 2001 From: Madeline Collier Date: Thu, 8 Aug 2024 17:17:43 +0200 Subject: [PATCH] Unify flash messaging casing in new admin UI This should consistently use either uppercase or lowercase. Since the others use lowercase, I went with that. --- admin/config/locales/adjustment_reasons.en.yml | 2 +- admin/spec/features/adjustment_reasons_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/config/locales/adjustment_reasons.en.yml b/admin/config/locales/adjustment_reasons.en.yml index 33da17b7cb..15d5d69a9a 100644 --- a/admin/config/locales/adjustment_reasons.en.yml +++ b/admin/config/locales/adjustment_reasons.en.yml @@ -3,7 +3,7 @@ en: adjustment_reasons: title: "Adjustment Reasons" destroy: - success: "Adjustment Reasons were successfully removed." + success: "Adjustment reasons were successfully removed." create: success: "Adjustment reason was successfully created." update: diff --git a/admin/spec/features/adjustment_reasons_spec.rb b/admin/spec/features/adjustment_reasons_spec.rb index 5508079316..32d8f97618 100644 --- a/admin/spec/features/adjustment_reasons_spec.rb +++ b/admin/spec/features/adjustment_reasons_spec.rb @@ -14,7 +14,7 @@ select_row("Default-adjustment-reason") click_on "Delete" - expect(page).to have_content("Adjustment Reasons were successfully removed.") + expect(page).to have_content("Adjustment reasons were successfully removed.") expect(page).not_to have_content("Default-adjustment-reason") expect(Spree::AdjustmentReason.count).to eq(0) expect(page).to be_axe_clean