X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c74ec0aa49f54e7068d8dfa8d2a61f9a3f28d10e..c2b19fa3e81e563aa3d6af71b6ca00e71feb3602:/test/controllers/notes_controller_test.rb diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index 1450aced8..50e7ae833 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -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