]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/5133'
authorTom Hughes <tom@compton.nu>
Fri, 30 Aug 2024 16:46:00 +0000 (17:46 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 30 Aug 2024 16:46:00 +0000 (17:46 +0100)
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)