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 "Test%20Title%20%7C%20OpenStreetMap", response.header["X-Page-Title"]
16 assert_equal "Test Title", @title
18 set_title("Test & Title")
19 assert_equal "Test%20%26%20Title%20%7C%20OpenStreetMap", response.header["X-Page-Title"]
20 assert_equal "Test & Title", @title
22 set_title("Tést & Tïtlè")
23 assert_equal "T%C3%A9st%20%26%20T%C3%AFtl%C3%A8%20%7C%20OpenStreetMap", response.header["X-Page-Title"]
24 assert_equal "Tést & Tïtlè", @title