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 2fb1382..19b9afc 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