]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/oauth2_applications_controller_test.rb
Trace import: validate background job results
[rails.git] / 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
 
     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)
 
   def test_new
     user = create(:user)