about summary refs log tree commit diff
path: root/spec/controllers/api/apps_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/api/apps_controller_spec.rb')
-rw-r--r--spec/controllers/api/apps_controller_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/controllers/api/apps_controller_spec.rb b/spec/controllers/api/apps_controller_spec.rb
deleted file mode 100644
index ebadddde2..000000000
--- a/spec/controllers/api/apps_controller_spec.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'rails_helper'
-
-RSpec.describe Api::AppsController, type: :controller do
-  render_views
-
-  describe 'POST #create' do
-    before do
-      post :create, params: { name: 'Test app', redirect_uri: 'urn:ietf:wg:oauth:2.0:oob' }
-    end
-
-    it 'returns http success' do
-      expect(response).to have_http_status(:success)
-    end
-
-    it 'creates an OAuth app' do
-      expect(Doorkeeper::Application.find_by(name: 'Test app')).to_not be nil
-    end
-
-    it 'returns client ID and client secret' do
-      json = body_as_json
-
-      expect(json[:client_id]).to_not be_blank
-      expect(json[:client_secret]).to_not be_blank
-    end
-  end
-end