diff options
Diffstat (limited to 'spec/features/jira_oauth_provider_authorize_spec.rb')
-rw-r--r-- | spec/features/jira_oauth_provider_authorize_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/jira_oauth_provider_authorize_spec.rb b/spec/features/jira_oauth_provider_authorize_spec.rb new file mode 100644 index 00000000000..daecae56101 --- /dev/null +++ b/spec/features/jira_oauth_provider_authorize_spec.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe 'JIRA OAuth Provider' do + describe 'JIRA DVCS OAuth Authorization' do + let(:application) { create(:oauth_application, redirect_uri: oauth_jira_callback_url, scopes: 'read_user') } + + before do + sign_in(user) + + visit oauth_jira_authorize_path(client_id: application.uid, + redirect_uri: oauth_jira_callback_url, + response_type: 'code', + state: 'my_state', + scope: 'read_user') + end + + it_behaves_like 'Secure OAuth Authorizations' + end +end |