Test oauth2 application list with moderator permission icon

This commit is contained in:
Anton Khorev 2024-08-30 19:29:02 +03:00
parent cee9818dfc
commit 212ace7ef1

View file

@ -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)