From: Anton Khorev Date: Sun, 1 Sep 2024 00:46:23 +0000 (+0300) Subject: Merge branch 'drop-oauth1' X-Git-Tag: live~207 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d419a5d6c844d841d10a46437ab5fff236dfc0b0?hp=17bc0853a05cc392c335cc8637e901fa33dd75bd Merge branch 'drop-oauth1' --- diff --git a/test/controllers/oauth2_applications_controller_test.rb b/test/controllers/oauth2_applications_controller_test.rb index a5c37d808..1333fa000 100644 --- a/test/controllers/oauth2_applications_controller_test.rb +++ b/test/controllers/oauth2_applications_controller_test.rb @@ -53,6 +53,16 @@ class Oauth2ApplicationsControllerTest < ActionDispatch::IntegrationTest assert_select "tbody tr", 2 end + def test_index_with_moderator_app + user = create(:user) + create(:oauth_application, :owner => user, :scopes => "write_redactions") + + session_for(user) + + get oauth_applications_path + assert_response :success + end + def test_new user = create(:user)