From 23d633751e67b71d8b55ac1f3c5857d02e0e56d5 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Mon, 26 Nov 2018 06:15:31 +0100 Subject: [PATCH] Adjust tests for Spanish translation --- CHANGELOG.rst | 1 + test/unit/i18n_test.rb | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b4856922..ac96b105 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ Changelog ++++++ - CSS fix for project macro +- Add Spanish translation, thanks to @dktcoding! 2.0.15 ++++++ diff --git a/test/unit/i18n_test.rb b/test/unit/i18n_test.rb index 6104e684..0f145f84 100644 --- a/test/unit/i18n_test.rb +++ b/test/unit/i18n_test.rb @@ -23,7 +23,7 @@ class I18nTest < Additionals::TestCase 'config', 'locales', '*.yml')].size - assert_equal lang_files_count, 7 + assert_equal 8, lang_files_count valid_languages.each do |lang| assert set_language_if_valid(lang) end @@ -32,6 +32,8 @@ class I18nTest < Additionals::TestCase assert_equal 'Externe URLs', l(:label_external_urls) ::I18n.locale = 'en' assert_equal 'External urls', l(:label_external_urls) + ::I18n.locale = 'es' + assert_equal 'URLs externos', l(:label_external_urls) ::I18n.locale = 'fr' assert_equal 'Les urnes externes', l(:label_external_urls) ::I18n.locale = 'it'