From 212ace7ef1bbf2332145d65a09fbb7454d3348ec Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 30 Aug 2024 19:29:02 +0300 Subject: [PATCH 1/1] Test oauth2 application list with moderator permission icon --- .../controllers/oauth2_applications_controller_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- 2.39.5