]> git.openstreetmap.org Git - rails.git/blobdiff - test/helpers/title_helper_test.rb
Decode entities in the title
[rails.git] / test / helpers / title_helper_test.rb
index cf7a1124398932f6d9c5e9be515e9fe76e6fa01d..11578cc111d2e65265d7d59e123cf464dc521612 100644 (file)
@@ -9,5 +9,9 @@ class TitleHelperTest < ActionView::TestCase
     set_title("Test Title")
     assert_equal "OpenStreetMap | Test Title", response.header["X-Page-Title"]
     assert_equal "Test Title", @title
+
+    set_title("Test & Title")
+    assert_equal "OpenStreetMap | Test & Title", response.header["X-Page-Title"]
+    assert_equal "Test & Title", @title
   end
 end