X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e2aef40437767e779f97a7447de69b4540839ff5..e35748567c431c3a092816bfbab0d2f5043284b1:/test/helpers/title_helper_test.rb?ds=sidebyside diff --git a/test/helpers/title_helper_test.rb b/test/helpers/title_helper_test.rb index d07a5bd07..523313eaf 100644 --- a/test/helpers/title_helper_test.rb +++ b/test/helpers/title_helper_test.rb @@ -3,6 +3,10 @@ require "test_helper" class TitleHelperTest < ActionView::TestCase def test_set_title + set_title + assert_equal "OpenStreetMap", response.header["X-Page-Title"] + assert_nil @title + set_title(nil) assert_equal "OpenStreetMap", response.header["X-Page-Title"] assert_nil @title