From 36be0a1d0ceeae489a88dd4d34cb79abe9443aa5 Mon Sep 17 00:00:00 2001 From: Dominik Klein Date: Thu, 12 Aug 2021 21:22:12 +0200 Subject: [PATCH] Maintenance: Enable rubocop policy 'Rails/Output' also for specs. --- .rubocop/default.yml | 2 ++ .../sequencer/sequence/import/freshdesk/ticket_field_spec.rb | 1 - spec/requests/integration/monitoring_spec.rb | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.rubocop/default.yml b/.rubocop/default.yml index 9b5874d37..7273db0c4 100644 --- a/.rubocop/default.yml +++ b/.rubocop/default.yml @@ -252,6 +252,8 @@ Rails/EnvironmentVariableAccess: Rails/Output: Exclude: - "lib/tasks/**/*" + Include: + - "**/*_spec.rb" # RSpec tests Style/NumericPredicate: diff --git a/spec/lib/sequencer/sequence/import/freshdesk/ticket_field_spec.rb b/spec/lib/sequencer/sequence/import/freshdesk/ticket_field_spec.rb index 012977b88..a49689633 100644 --- a/spec/lib/sequencer/sequence/import/freshdesk/ticket_field_spec.rb +++ b/spec/lib/sequencer/sequence/import/freshdesk/ticket_field_spec.rb @@ -46,7 +46,6 @@ RSpec.describe ::Sequencer::Sequence::Import::Freshdesk::TicketField, sequencer: end it 'adds a custom field' do - p resource expect { process(process_payload) }.to change(Ticket, :column_names).by(['cf_custom_dropdown']) end end diff --git a/spec/requests/integration/monitoring_spec.rb b/spec/requests/integration/monitoring_spec.rb index 989b257d8..b22708214 100644 --- a/spec/requests/integration/monitoring_spec.rb +++ b/spec/requests/integration/monitoring_spec.rb @@ -630,9 +630,8 @@ RSpec.describe 'Monitoring', type: :request do # add another job dummy_class = Class.new(ApplicationJob) do - def perform - puts 'work work' + true end end