replace RAILS_ROOT to Rails.root if functional application controller test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6075 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-06-16 01:15:16 +00:00
parent 5500defd0d
commit dd176828bf
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,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
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)