]> git.openstreetmap.org Git - rails.git/blobdiff - test/helpers/title_helper_test.rb
Standardise on "hash rocket" style for hashes
[rails.git] / test / helpers / title_helper_test.rb
index cf7a1124398932f6d9c5e9be515e9fe76e6fa01d..2a3cbc46e3803cbde109a4321e820fb702b85a56 100644 (file)
@@ -1,4 +1,4 @@
-require 'test_helper'
+require "test_helper"
 
 class TitleHelperTest < ActionView::TestCase
   def test_set_title
@@ -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