]> git.openstreetmap.org Git - rails.git/blobdiff - test/helpers/title_helper_test.rb
Merge branch 'master' into moderation
[rails.git] / test / helpers / title_helper_test.rb
index d07a5bd0707dc9cdb6698f3e99753638a1a1d183..7d83554303e5f5e856c9b841be83ee4ee9118896 100644 (file)
@@ -1,8 +1,13 @@
 # coding: utf-8
 # coding: utf-8
+
 require "test_helper"
 
 class TitleHelperTest < ActionView::TestCase
   def test_set_title
 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
     set_title(nil)
     assert_equal "OpenStreetMap", response.header["X-Page-Title"]
     assert_nil @title