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
Run `rubocop -a` on spec/requests
Aaron Contrerase3a778cafe8b
diff --git a/spec/requests/admin/attachments/quarantined_attachments_spec.rb b/spec/requests/admin/attachments/quarantined_attachments_spec.rbindex c880048050e..9264f17a5e4 100644--- a/spec/requests/admin/attachments/quarantined_attachments_spec.rb+++ b/spec/requests/admin/attachments/quarantined_attachments_spec.rb@@ -32,7 +32,6 @@ RSpec.describe 'Quarantined attachments',:skip_csrf,type: :rails_request,with_ee: %i[virus_scanning] do-shared_let(:other_author) { create(:user) }shared_let(:admin) { create(:admin) }diff --git a/spec/requests/admin/attachments/virus_scanning_settings_spec.rb b/spec/requests/admin/attachments/virus_scanning_settings_spec.rbindex 14ff3e6eef8..0e9473f4d59 100644--- a/spec/requests/admin/attachments/virus_scanning_settings_spec.rb+++ b/spec/requests/admin/attachments/virus_scanning_settings_spec.rb@@ -31,13 +31,12 @@ require 'spec_helper'RSpec.describe 'Attachments virus scanning',:skip_csrf,type: :rails_request do-shared_let(:admin) { create(:admin) }let(:service) { instance_double(Attachments::ClamAVService) }before dologin_as admin- allow(::Attachments::ClamAVService)+ allow(Attachments::ClamAVService).to receive(:new).and_return(service)@@ -46,7 +45,6 @@ RSpec.describe 'Attachments virus scanning',describe 'enabling virus scanning',with_ee: %i[virus_scanning] do-subject dopatch '/admin/settings/virus_scanning',params: {@@ -69,7 +67,7 @@ RSpec.describe 'Attachments virus scanning',it 'shows no error if ClamAV can be reached' doexpect(subject).to be_redirectfollow_redirect!- expect(response.body).not_to have_text I18n.t('settings.antivirus.clamav_ping_failed')+ expect(response.body).to have_no_text I18n.t('settings.antivirus.clamav_ping_failed')expect(Setting.antivirus_scan_mode).to eq(:clamav_socket)endend@@ -112,7 +110,7 @@ RSpec.describe 'Attachments virus scanning',expect(response).to be_redirectfollow_redirect!- expect(response.body).not_to have_text 'remain in quarantine.'+ expect(response.body).to have_no_text 'remain in quarantine.'expect(Setting.antivirus_scan_mode).to eq(:disabled)enddiff --git a/spec/requests/oauth_clients/ensure_connection_flow_spec.rb b/spec/requests/oauth_clients/ensure_connection_flow_spec.rbindex 03a894eb3ca..489b957b780 100644--- a/spec/requests/oauth_clients/ensure_connection_flow_spec.rb+++ b/spec/requests/oauth_clients/ensure_connection_flow_spec.rb@@ -126,7 +126,7 @@ RSpec.describe "/oauth_clients/:oauth_client_id/ensure_connection endpoint", :weheaders: {'Accept' => 'application/json','Authorization' => "Bearer #{oauth_client_token.access_token}",- 'Ocs-Apirequest' => 'true',+ 'Ocs-Apirequest' => 'true'}).to_return(status: 200, body: "", headers: {})end