blob: 55bafa938a74e1f33053a7f7b445257e0fdeef82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|