diff options
Diffstat (limited to 'spec/models/jira_connect_installation_spec.rb')
-rw-r--r-- | spec/models/jira_connect_installation_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/models/jira_connect_installation_spec.rb b/spec/models/jira_connect_installation_spec.rb index aafc838d3da..3d1095845aa 100644 --- a/spec/models/jira_connect_installation_spec.rb +++ b/spec/models/jira_connect_installation_spec.rb @@ -45,30 +45,4 @@ RSpec.describe JiraConnectInstallation do expect(subject).to contain_exactly(subscription.installation) end end - - describe '#oauth_authorization_url' do - let_it_be(:installation) { create(:jira_connect_installation) } - - subject { installation.oauth_authorization_url } - - before do - allow(Gitlab).to receive_message_chain('config.gitlab.host') { 'http://test.host' } - end - - it { is_expected.to eq('http://test.host') } - - context 'with instance_url' do - let_it_be(:installation) { create(:jira_connect_installation, instance_url: 'https://gitlab.example.com') } - - it { is_expected.to eq('https://gitlab.example.com') } - - context 'and jira_connect_oauth_self_managed feature is disabled' do - before do - stub_feature_flags(jira_connect_oauth_self_managed: false) - end - - it { is_expected.to eq('http://test.host') } - end - end - end end |