]> git.openstreetmap.org Git - rails.git/commitdiff
Test oauth2 application list with moderator permission icon
authorAnton Khorev <tony29@yandex.ru>
Fri, 30 Aug 2024 16:29:02 +0000 (19:29 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 30 Aug 2024 16:29:02 +0000 (19:29 +0300)
test/controllers/oauth2_applications_controller_test.rb

index a5c37d8089b291ac10d1a2f76fe517bae191cc14..1333fa000cca1c4ba69d2dc67e94f56a286142da 100644 (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)