about summary refs log tree commit diff
path: root/spec/helpers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-11-26 01:12:09 +0100
committerGitHub <noreply@github.com>2021-11-26 01:12:09 +0100
commitb4f785c1f46693c4e42b035e6728f99aac1b85db (patch)
treee904eeb81cc2a1cd99dc11d8fbe0ed0e9d766d59 /spec/helpers
parent8c2fe2a846dd14914f7faa4bf71be21058249a93 (diff)
parent5f10e64330635bfd609ba5acdd78fa505c12f5b1 (diff)
Merge pull request #1636 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/languages_helper_spec.rb (renamed from spec/helpers/settings_helper_spec.rb)9
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/helpers/settings_helper_spec.rb b/spec/helpers/languages_helper_spec.rb
index 092c37583..6db617824 100644
--- a/spec/helpers/settings_helper_spec.rb
+++ b/spec/helpers/languages_helper_spec.rb
@@ -2,20 +2,15 @@
 
 require 'rails_helper'
 
-describe SettingsHelper do
+describe LanguagesHelper do
   describe 'the HUMAN_LOCALES constant' do
     it 'includes all I18n locales' do
-      options = I18n.available_locales
-
-      expect(described_class::HUMAN_LOCALES.keys).to include(*options)
+      expect(described_class::HUMAN_LOCALES.keys).to include(*I18n.available_locales)
     end
   end
 
   describe 'human_locale' do
     it 'finds the human readable local description from a key' do
-      # Ensure the value is as we expect
-      expect(described_class::HUMAN_LOCALES[:en]).to eq('English')
-
       expect(helper.human_locale(:en)).to eq('English')
     end
   end