summaryrefslogtreecommitdiffstats
path: root/spec/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-15 05:07:09 +0100
committerGitHub <noreply@github.com>2019-03-15 05:07:09 +0100
commit1b167707c2ae5ebc272afc3a7515f5b236083135 (patch)
tree340bf698addeb3f2302b66620bc0d47378875ac5 /spec/lib
parentba84b6d4d7b2e1ccdcbfcdd5e0d09fbfdb241f45 (diff)
Fix language detection of non-latin alphabets even at few characters (#10276)
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/language_detector_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/language_detector_spec.rb b/spec/lib/language_detector_spec.rb
index 0fa2a59eff9..0cb70605ad4 100644
--- a/spec/lib/language_detector_spec.rb
+++ b/spec/lib/language_detector_spec.rb
@@ -106,11 +106,11 @@ describe LanguageDetector do
end
describe 'remote user' do
- it 'nil for foreign user when language is not present' do
+ it 'detects Korean language' do
string = '안녕하세요'
result = described_class.instance.detect(string, account_remote)
- expect(result).to eq nil
+ expect(result).to eq :ko
end
end