about summary refs log tree commit diff
path: root/spec/helpers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-08 18:23:53 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-02-08 18:23:53 +0100
commit692963d43beb5e66a86e15d63b5aa3eeca82f0a1 (patch)
treebc7319ae242a889bb1d05b7afdd365d78a43ac1d /spec/helpers
parentb1983623aec8e0b066d115736d2151e0c74407fa (diff)
parentb6d7726ecbc833abd00f6a9d36b24d9776cfe623 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/languages_helper_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/languages_helper_spec.rb b/spec/helpers/languages_helper_spec.rb
index 6db617824..b455cee33 100644
--- a/spec/helpers/languages_helper_spec.rb
+++ b/spec/helpers/languages_helper_spec.rb
@@ -3,9 +3,9 @@
 require 'rails_helper'
 
 describe LanguagesHelper do
-  describe 'the HUMAN_LOCALES constant' do
-    it 'includes all I18n locales' do
-      expect(described_class::HUMAN_LOCALES.keys).to include(*I18n.available_locales)
+  describe 'the SUPPORTED_LOCALES constant' do
+    it 'includes all i18n locales' do
+      expect(Set.new(described_class::SUPPORTED_LOCALES.keys + described_class::REGIONAL_LOCALE_NAMES.keys)).to include(*I18n.available_locales)
     end
   end