mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 19:05:51 +01:00
Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -22,6 +22,8 @@ require 'application'
|
||||
class ApplicationController; def rescue_action(e) raise e end; end
|
||||
|
||||
class ApplicationControllerTest < Test::Unit::TestCase
|
||||
include Redmine::I18n
|
||||
|
||||
def setup
|
||||
@controller = ApplicationController.new
|
||||
@request = ActionController::TestRequest.new
|
||||
@@ -30,9 +32,9 @@ class ApplicationControllerTest < Test::Unit::TestCase
|
||||
|
||||
# check that all language files are valid
|
||||
def test_localization
|
||||
lang_files_count = Dir["#{RAILS_ROOT}/lang/*.yml"].size
|
||||
assert_equal lang_files_count, GLoc.valid_languages.size
|
||||
GLoc.valid_languages.each do |lang|
|
||||
lang_files_count = Dir["#{RAILS_ROOT}/config/locales/*.yml"].size
|
||||
assert_equal lang_files_count, valid_languages.size
|
||||
valid_languages.each do |lang|
|
||||
assert set_language_if_valid(lang)
|
||||
end
|
||||
set_language_if_valid('en')
|
||||
|
||||
Reference in New Issue
Block a user