X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4aec8dc3a55654a847c91ef07c3c99428e3a6f11..3b3896da08b0733c3934ac3913ae4b48efa939ff:/test/functional/map_bugs_controller_test.rb diff --git a/test/functional/map_bugs_controller_test.rb b/test/functional/map_bugs_controller_test.rb index b701e244e..c3335d2b1 100644 --- a/test/functional/map_bugs_controller_test.rb +++ b/test/functional/map_bugs_controller_test.rb @@ -125,6 +125,18 @@ class MapBugsControllerTest < ActionController::TestCase assert_response :success end + def test_user_bugs_success + get :my_bugs, {:display_name=>'test'} + assert_response :success + + get :my_bugs, {:display_name=>'pulibc_test2'} + assert_response :success + + get :my_bugs, {:display_name=>'non-existent'} + assert_response :not_found + + end + def test_map_bug_comment_create_not_found assert_no_difference('MapBugComment.count') do post :edit_bug, {:id => 12345, :name => "new_tester", :text => "This is an additional comment"}