2019-11-26 07:06:18 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 05:08:32 -04:00
|
|
|
RSpec.describe ServicesHelper do
|
2020-07-16 23:09:14 -04:00
|
|
|
describe '#integration_form_data' do
|
|
|
|
subject { helper.integration_form_data(integration) }
|
|
|
|
|
|
|
|
context 'Jira service' do
|
|
|
|
let(:integration) { build(:jira_service) }
|
|
|
|
|
|
|
|
it 'includes Jira specific fields' do
|
|
|
|
is_expected.to include(
|
|
|
|
:id,
|
|
|
|
:show_active,
|
|
|
|
:activated,
|
|
|
|
:type,
|
|
|
|
:merge_request_events,
|
|
|
|
:commit_events,
|
|
|
|
:enable_comments,
|
|
|
|
:comment_detail,
|
|
|
|
:trigger_events,
|
|
|
|
:fields,
|
|
|
|
:inherit_from_id
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-11-26 07:06:18 -05:00
|
|
|
end
|