Add progressive enhancement JS for active_language

This commit is contained in:
maddiebaka
2023-10-27 17:27:21 -04:00
parent 3ba4a49a26
commit 60f37ece67
5 changed files with 26 additions and 4 deletions

View File

@@ -25,7 +25,10 @@ RSpec.describe ActiveLanguageHelper, type: :helper do
it "should not contain an English option" do
expect(@tag).to_not include("English")
end
it "should include css id #active_language_select_tag" do
expect(@tag).to have_selector(%(select[id="active_language_select_tag"]))
end
end
end