소스 검색

Test the native_locale_name of a non-standard locale (#20284)

`:en` is English for both `standard_locale_name` and
`native_locale_name`, and so makes for a poor test candidate for
differentiating between them.
F 1 년 전
부모
커밋
d4f973227c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      spec/helpers/languages_helper_spec.rb

+ 1 - 1
spec/helpers/languages_helper_spec.rb

@@ -11,7 +11,7 @@ describe LanguagesHelper do
 
   describe 'native_locale_name' do
     it 'finds the human readable native name from a key' do
-      expect(helper.native_locale_name(:en)).to eq('English')
+      expect(helper.native_locale_name(:de)).to eq('Deutsch')
     end
   end