From b939d41bf5426de528fddad38e2074f48595ec9e Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 18 Mar 2026 13:18:15 +1100 Subject: [PATCH] Remove useless negative spec Any change in markup would invalidate the test. It is unlikely to ever fail and then it would not be a big problem. --- spec/system/consumer/multilingual_spec.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/spec/system/consumer/multilingual_spec.rb b/spec/system/consumer/multilingual_spec.rb index a286977793..09b7d3c673 100644 --- a/spec/system/consumer/multilingual_spec.rb +++ b/spec/system/consumer/multilingual_spec.rb @@ -64,19 +64,6 @@ RSpec.describe 'Multilingual' do end describe "using the language switcher UI" do - context "when there is only one language available" do - before do - allow(ENV).to receive(:[]).and_call_original - allow(ENV).to receive(:[]).with("LOCALE").and_return("en") - allow(ENV).to receive(:[]).with("AVAILABLE_LOCALES").and_return("en") - end - - it "hides the dropdown language menu" do - visit root_path - expect(page).not_to have_css 'ul.right li.language-switcher.has-dropdown' - end - end - context "when there are multiple languages available" do before do allow(ENV).to receive(:[]).and_call_original