fixes application controller tests by defining available_languages

pull/41/head
Jens Ulferts 12 years ago committed by Martin Czuchra
parent 6c44d803a7
commit 45a932b940
  1. 1
      test/functional/application_controller_test.rb

@ -29,6 +29,7 @@ class ApplicationControllerTest < ActionController::TestCase
# check that all language files are valid
def test_localization
lang_files_count = Dir["#{RAILS_ROOT}/config/locales/*.yml"].size
Setting.available_languages = Setting.all_languages
assert_equal lang_files_count, valid_languages.size
valid_languages.each do |lang|
assert set_language_if_valid(lang)

Loading…
Cancel
Save