summaryrefslogtreecommitdiff
path: root/spec/controllers/jira_connect/app_descriptor_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/jira_connect/app_descriptor_controller_spec.rb')
-rw-r--r--spec/controllers/jira_connect/app_descriptor_controller_spec.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/controllers/jira_connect/app_descriptor_controller_spec.rb b/spec/controllers/jira_connect/app_descriptor_controller_spec.rb
new file mode 100644
index 00000000000..55bafa938a7
--- /dev/null
+++ b/spec/controllers/jira_connect/app_descriptor_controller_spec.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe JiraConnect::AppDescriptorController do
+ describe '#show' do
+ it 'returns JSON app descriptor' do
+ get :show
+
+ expect(response).to have_gitlab_http_status(:ok)
+ expect(json_response).to include(
+ 'baseUrl' => 'https://test.host/-/jira_connect',
+ 'lifecycle' => {
+ 'installed' => '/events/installed',
+ 'uninstalled' => '/events/uninstalled'
+ },
+ 'links' => {
+ 'documentation' => 'http://test.host/help/integration/jira_development_panel#gitlabcom-1'
+ }
+ )
+ end
+ end
+end