summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-16 01:15:16 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-16 01:15:16 +0000
commitdd176828bfcfd5fa958acd024da6f323da5b1991 (patch)
tree46d60e4b2692c2c11be393ff79cb8fdb621c4847 /test
parent5500defd0dbd2daf666b41395dedb61acc8ac4d5 (diff)
downloadredmine-dd176828bfcfd5fa958acd024da6f323da5b1991.tar.gz
redmine-dd176828bfcfd5fa958acd024da6f323da5b1991.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/functional/application_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb
index 57f3e091c..5cc7901f1 100644
--- a/test/functional/application_controller_test.rb
+++ b/test/functional/application_controller_test.rb
@@ -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)