From dd176828bfcfd5fa958acd024da6f323da5b1991 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 16 Jun 2011 01:15:16 +0000 Subject: [PATCH] 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 --- test/functional/application_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5