4 class TitleHelperTest < ActionView::TestCase
7 assert_equal "OpenStreetMap", response.header["X-Page-Title"]
11 assert_equal "OpenStreetMap", response.header["X-Page-Title"]
14 set_title("Test Title")
15 assert_equal "OpenStreetMap%20%7C%20Test%20Title", response.header["X-Page-Title"]
16 assert_equal "Test Title", @title
18 set_title("Test & Title")
19 assert_equal "OpenStreetMap%20%7C%20Test%20%26%20Title", response.header["X-Page-Title"]
20 assert_equal "Test & Title", @title
22 set_title("Tést & Tïtlè")
23 assert_equal "OpenStreetMap%20%7C%20T%C3%A9st%20%26%20T%C3%AFtl%C3%A8", response.header["X-Page-Title"]
24 assert_equal "Tést & Tïtlè", @title