From d07f44b0d2774a22a0652f6d982361168128fe9f Mon Sep 17 00:00:00 2001 From: Seth Herr Date: Sat, 9 Dec 2023 14:29:01 -0800 Subject: [PATCH] Update localization helper spec to match current reality --- spec/helpers/localization_helper_spec.rb | 27 +++++------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/spec/helpers/localization_helper_spec.rb b/spec/helpers/localization_helper_spec.rb index a67c336ece..15cda11ca7 100644 --- a/spec/helpers/localization_helper_spec.rb +++ b/spec/helpers/localization_helper_spec.rb @@ -8,8 +8,7 @@ choices = [ ["English", "en"], ["Nederlands (Dutch)", "nl"], - ["Norwegian (Bokmål)", "nb"], - ["Spanish", "es"] + ["Norwegian (Bokmål)", "nb"] ] expect(language_choices).to eq(choices) end @@ -22,8 +21,7 @@ choices = [ ["English (Engels)", "en"], ["Nederlands", "nl"], - ["Noors (Bokmål)", "nb"], - ["Spaans", "es"] + ["Noors (Bokmål)", "nb"] ] expect(language_choices).to eq(choices) end @@ -34,24 +32,9 @@ it "returns with norwegian included" do I18n.with_locale(:nb) do choices = [ - ["English (Engelsk)", "en"], - ["Nederlands (Nederlandsk)", "nl"], - ["Norsk (Bokmål)", "nb"], - ["Spansk", "es"] - ] - expect(language_choices).to eq(choices) - end - end - end - - context "in Spanish" do - it "returns with spanish included" do - I18n.with_locale(:es) do - choices = [ - ["English (Inglés)", "en"], - ["Nederlands (Holandés)", "nl"], - ["Noruego (Bokmål)", "nb"], - ["Español", "es"] + ["Engelsk", "en"], + ["Nederlands (nederlandsk)", "nl"], + ["norsk (bokmål)", "nb"] ] expect(language_choices).to eq(choices) end