]> git.openstreetmap.org Git - rails.git/commitdiff
Add a test to check that html.dir is sensible in every locale
authorTom Hughes <tom@compton.nu>
Sun, 23 Feb 2014 00:20:57 +0000 (00:20 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 23 Feb 2014 00:20:57 +0000 (00:20 +0000)
test/unit/i18n_test.rb

index 2fb13824ca0904bfecd67964c194003161285331..19b9afcfda5d09407a5eb500bcd1e310d13d6c8a 100644 (file)
@@ -48,6 +48,8 @@ class I18nTest < ActiveSupport::TestCase
           end
         end
       end
+
+      assert ["ltr", "rtl"].include?(I18n.t("html.dir", :locale => locale)), "html.dir must be ltr or rtl"
     end
   end
 private