X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e2aef40437767e779f97a7447de69b4540839ff5..63a2f1f1b4ce571d2a3048628fa756fcc7aa1cbb:/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