[openstreetmap/openstreetmap-website] Add some validations for i18n values (PR #4007)

Tom Hughes notifications at github.com
Wed Apr 12 13:19:03 UTC 2023


@tomhughes commented on this pull request.



> @@ -55,6 +55,20 @@ class I18nTest < ActiveSupport::TestCase
     end
   end
 
+  def test_en_for_raw_html
+    en = YAML.load_file(Rails.root.join("config/locales/en.yml"))
+    assert_nothing_raised do
+      check_values_for_raw_html(en)
+    end
+  end
+
+  def test_en_for_nil_values

What is this actually checking for? How would a `nil` arise?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4007#pullrequestreview-1381304381
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4007/review/1381304381 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230412/d8c0338c/attachment-0001.htm>


More information about the rails-dev mailing list