X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1b6c214ab5974bd4d5a5352c89d6cd94ddaf9044..41eb7a14072134e560bd18b9fbd2bbaa696eefd6:/test/controllers/notes_controller_test.rb?ds=sidebyside diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index 9439ba676..5cdcbb31d 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -872,9 +872,24 @@ class NotesControllerTest < ActionController::TestCase def test_mine_success get :mine, :display_name => "test" assert_response :success + assert_select "table.note_list tr", :count => 2 get :mine, :display_name => "pulibc_test2" assert_response :success + assert_select "table.note_list tr", :count => 3 + + get :mine, :display_name => "non-existent" + assert_response :not_found + + session[:user] = users(:moderator_user).id + + get :mine, :display_name => "test" + assert_response :success + assert_select "table.note_list tr", :count => 2 + + get :mine, :display_name => "pulibc_test2" + assert_response :success + assert_select "table.note_list tr", :count => 4 get :mine, :display_name => "non-existent" assert_response :not_found