5 class TitleHelperTest < ActionView::TestCase
8 assert_equal "OpenStreetMap", response.header["X-Page-Title"]
12 assert_equal "OpenStreetMap", response.header["X-Page-Title"]
15 set_title("Test Title")
16 assert_equal "OpenStreetMap%20%7C%20Test%20Title", response.header["X-Page-Title"]
17 assert_equal "Test Title", @title
19 set_title("Test & Title")
20 assert_equal "OpenStreetMap%20%7C%20Test%20&%20Title", response.header["X-Page-Title"]
21 assert_equal "Test & Title", @title
23 set_title("Tést & Tïtlè")
24 assert_equal "OpenStreetMap%20%7C%20T%C3%A9st%20&%20T%C3%AFtl%C3%A8", response.header["X-Page-Title"]
25 assert_equal "Tést & Tïtlè", @title