Skip to content

Commit

Permalink
use global additionals test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Oct 5, 2024
1 parent 2598c7b commit bef7541
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions test/unit/i18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,10 @@ def test_valid_languages
end

def test_locales_validness
lang_files_count = Rails.root.glob('plugins/redmine_issue_view_columns/config/locales/*.yml').size

assert_equal 2, lang_files_count

valid_languages.each do |lang|
assert set_language_if_valid(lang)
case lang.to_s
when 'en'

assert_equal 'Scope', l(:label_view_columns_issue_scope)
when 'de'

assert_not l(:label_view_columns_issue_scope) == 'Scope', lang
end
end

set_language_if_valid 'en'
assert_locales_validness plugin: 'redmine_issue_view_columns',
file_cnt: 2,
locales: %w[de],
control_string: :label_view_columns_issue_scope,
control_english: 'Scope'
end
end

0 comments on commit bef7541

Please sign in to comment.