summaryrefslogtreecommitdiff
path: root/spec/views/admin/application_settings/_jira_connect.html.haml_spec.rb
blob: 1739fb3d8b9b15c720ddad256993e58a5a31b8cc (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 'admin/application_settings/_jira_connect.html.haml', feature_category: :integrations do
  let_it_be(:admin) { create(:admin) }
  let(:application_setting) { build(:application_setting) }

  before do
    assign(:application_setting, application_setting)
    allow(view).to receive(:expanded).and_return(true)
  end

  it 'renders the application ID field' do
    render
    expect(rendered).to have_field('Jira Connect Application ID', type: 'text')
  end

  it 'renders the asymmetric jwt cdn url field' do
    render
    expect(rendered).to have_field('Jira Connect Proxy URL', type: 'text')
  end
end