##// END OF EJS Templates
replace RAILS_ROOT to Rails.root if functional application controller test....
Toshi MARUYAMA -
r5955:dd176828bfcf
parent child
Show More
@@ -32,7 +32,7 class ApplicationControllerTest < ActionController::TestCase
32
32
33 # check that all language files are valid
33 # check that all language files are valid
34 def test_localization
34 def test_localization
35 lang_files_count = Dir["#{RAILS_ROOT}/config/locales/*.yml"].size
35 lang_files_count = Dir["#{Rails.root}/config/locales/*.yml"].size
36 assert_equal lang_files_count, valid_languages.size
36 assert_equal lang_files_count, valid_languages.size
37 valid_languages.each do |lang|
37 valid_languages.each do |lang|
38 assert set_language_if_valid(lang)
38 assert set_language_if_valid(lang)
General Comments 0
You need to be logged in to leave comments. Login now