]> source.dussan.org Git - redmine.git/commitdiff
replace RAILS_ROOT to Rails.root if functional application controller test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 16 Jun 2011 01:15:16 +0000 (01:15 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 16 Jun 2011 01:15:16 +0000 (01:15 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6075 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/application_controller_test.rb

index 57f3e091cd25936d62c5a074da91a096dffebcf1..5cc7901f1aae04c156a21ec36e3f888e4caa6921 100644 (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)