From: Tom Hughes Date: Sun, 23 Feb 2014 00:20:57 +0000 (+0000) Subject: Add a test to check that html.dir is sensible in every locale X-Git-Tag: live~5419 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1ea64ea977b08e5393d469707e268aee260acd2f Add a test to check that html.dir is sensible in every locale --- diff --git a/test/unit/i18n_test.rb b/test/unit/i18n_test.rb index 2fb13824c..19b9afcfd 100644 --- a/test/unit/i18n_test.rb +++ b/test/unit/i18n_test.rb @@ -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