]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/notes_controller_test.rb
Use jquery interface for enabling/disabling tooltips
[rails.git] / test / controllers / notes_controller_test.rb
index 1450aced88275bec8b6e02c90199d81ba7469a43..50e7ae833615905561666b31b8dbbef3d4bf3301 100644 (file)
@@ -73,4 +73,11 @@ class NotesControllerTest < ActionDispatch::IntegrationTest
     assert_response :success
     assert_select "table.note_list tr", :count => 11
   end
+
+  def test_empty_page
+    user = create(:user)
+    get user_notes_path(:display_name => user.display_name)
+    assert_response :success
+    assert_select "h4", :html => "No notes"
+  end
 end