OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fixed rubocop offenses in connection manager specs
Andreas Pfohl94e50f915297
diff --git a/spec/services/oauth_clients/connection_manager_spec.rb b/spec/services/oauth_clients/connection_manager_spec.rbindex a3a8a986b8f..a507785c2fa 100644--- a/spec/services/oauth_clients/connection_manager_spec.rb+++ b/spec/services/oauth_clients/connection_manager_spec.rb@@ -399,7 +399,7 @@ describe ::OAuthClients::ConnectionManager, type: :model docontext 'with outdated access token' dolet(:new_oauth_client_token) { create :oauth_client_token }- let(:refresh_service_result) { ServiceResult.new(success: true) }+ let(:refresh_service_result) { ServiceResult.success }before dostub_request(:get, File.join(host, ::OAuthClients::ConnectionManager::AUTHORIZATION_CHECK_PATH))@@ -415,7 +415,7 @@ describe ::OAuthClients::ConnectionManager, type: :model doendcontext 'with invalid refresh token' do- let(:refresh_service_result) { ServiceResult.new(success: false, result: 'invalid_grant') }+ let(:refresh_service_result) { ServiceResult.failure(result: 'invalid_grant') }it 'refreshes the access token and returns :failed_authorization' doexpect(subject).to eq :failed_authorization@@ -424,7 +424,7 @@ describe ::OAuthClients::ConnectionManager, type: :model doendcontext 'with some other error while refreshing access token' do- let(:refresh_service_result) { ServiceResult.new(success: false, result: nil) }+ let(:refresh_service_result) { ServiceResult.failure }it 'returns :error' doexpect(subject).to eq :error