From 28c764493f683be86e5a05fc591ae0e93da2afba Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Thu, 14 Aug 2014 11:54:49 +0200 Subject: [PATCH] Fix test --- test/functional/application_controller_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index 2a32251c4b..fae11cd28f 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -44,7 +44,10 @@ class ApplicationControllerTest < ActionController::TestCase # check that all language files are valid def test_localization - lang_files_count = Dir[Rails.root.join('config/locales/*.yml')].size + lang_files_count = Dir.glob(Rails.root.join('config/locales/*.yml')) + .map { |f| File.basename(f) } + .reject { |b| b.starts_with? 'js' } + .size Setting.available_languages = Setting.all_languages assert_equal lang_files_count, valid_languages.size valid_languages.each do |lang|