Skip to content

Commit

Permalink
add i18n test pressure (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 12, 2020
1 parent 2da4865 commit cc35f40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/i18n-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ ignore_missing:
ignore_unused:
- 'datetime.distance_in_words.dativ.*'
- 'activerecord.attributes.user.*'
- 'errors.messages.*'
# - 'activerecord.attributes.*'
# - '{devise,kaminari,will_paginate}.*'
# - 'simple_form.{yes,no}'
Expand Down
8 changes: 4 additions & 4 deletions test/i18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ def setup
end

# Drive this down
def test_no_more_than_42_missing_keys
assert @missing_keys.leaves.count < 43,
def test_no_more_than_20_missing_keys
assert @missing_keys.leaves.count < 21,
"Missing #{@missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
end

# Drive this down
def test_no_more_than_80_unused_keys
assert @unused_keys.leaves.count < 80,
def test_no_more_than_40_unused_keys
assert @unused_keys.leaves.count < 41,
"#{@unused_keys.leaves.count} unused i18n keys, run `i18n-tasks unused' to show them"
end

Expand Down

0 comments on commit cc35f40

Please sign in to comment.