diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-08-22 16:23:43 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-08-31 21:13:00 +0200 |
commit | 973c697960b9538222c5a83dfe643107313097cc (patch) | |
tree | e2a99fb0e90e80ebc104397ed5e39534caa83402 /spec/lib/gitlab | |
parent | c34cf3a95286e46a23abdd567aedf2e4a6c72d5e (diff) | |
download | gitlab-ce-973c697960b9538222c5a83dfe643107313097cc.tar.gz |
Add spec for languages without plurals
Diffstat (limited to 'spec/lib/gitlab')
-rw-r--r-- | spec/lib/gitlab/po_linter_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/lib/gitlab/po_linter_spec.rb b/spec/lib/gitlab/po_linter_spec.rb index b59cefd294e..75b3163753f 100644 --- a/spec/lib/gitlab/po_linter_spec.rb +++ b/spec/lib/gitlab/po_linter_spec.rb @@ -65,6 +65,22 @@ describe Gitlab::PoLinter do is_expected.to be_empty end end + + context 'with missing plurals' do + let(:po_path) { 'spec/fixtures/no_plurals.po' } + + it 'has no errors' do + is_expected.to be_empty + end + end + + context 'with multiple plurals' do + let(:po_path) { 'spec/fixtures/multiple_plurals.po' } + + it 'has no errors' do + is_expected.not_to be_empty + end + end end describe '#parse_po' do |