From 4330ae683b2a7b751dfa43f250aa8a2ad52328d5 Mon Sep 17 00:00:00 2001 From: rajat-puppet Date: Mon, 11 Sep 2023 14:42:29 +0530 Subject: [PATCH] Fixing CI failure due to rubocop --- .rubocop_todo.yml | 5 +++++ spec/acceptance/should_create_task_spec.rb | 10 +++++----- .../puppet_x/puppetlabs/scheduled_task/trigger_spec.rb | 1 - 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 253f1672..c27057ba 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -160,6 +160,11 @@ RSpec/NoExpectationExample: - 'spec/unit/puppet/provider/scheduled_task/win32_taskscheduler_spec.rb' - 'spec/unit/puppet/type/scheduled_task_spec.rb' +# Offense count: 1 +RSpec/SpecFilePathFormat: + Exclude: + - 'spec/unit/puppet_x/puppetlabs/scheduled_task/trigger_spec.rb' + # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. diff --git a/spec/acceptance/should_create_task_spec.rb b/spec/acceptance/should_create_task_spec.rb index 94097851..daace81d 100644 --- a/spec/acceptance/should_create_task_spec.rb +++ b/spec/acceptance/should_create_task_spec.rb @@ -25,7 +25,7 @@ end end - it 'creates a task that runs on the last day of the month: taskscheduler_api2', tier_high: true do + it 'creates a task that runs on the last day of the month: taskscheduler_api2', :tier_high do pp = <<-MANIFEST scheduled_task {'#{taskname}': ensure => present, @@ -54,7 +54,7 @@ end end - it 'creates a task if it does not exist: taskscheduler_api2', tier_high: true do + it 'creates a task if it does not exist: taskscheduler_api2', :tier_high do pp = <<-MANIFEST scheduled_task {'#{taskname}': ensure => present, @@ -77,7 +77,7 @@ run_shell(query_cmd) end - it 'creates a task if it does not exist: win32_taskscheduler', tier_high: true do + it 'creates a task if it does not exist: win32_taskscheduler', :tier_high do pp = <<-MANIFEST scheduled_task {'#{taskname}': ensure => present, @@ -371,7 +371,7 @@ end end - it 'creates a task with synchronisation disabled: taskscheduler_api2', tier_high: true do + it 'creates a task with synchronisation disabled: taskscheduler_api2', :tier_high do pp = <<-MANIFEST scheduled_task {'#{taskname}': ensure => present, @@ -394,7 +394,7 @@ run_shell(query_cmd) end - it 'creates a task with synchronisation disabled: win32_taskscheduler', tier_high: true do + it 'creates a task with synchronisation disabled: win32_taskscheduler', :tier_high do pp = <<-MANIFEST scheduled_task {'#{taskname}': ensure => present, diff --git a/spec/unit/puppet_x/puppetlabs/scheduled_task/trigger_spec.rb b/spec/unit/puppet_x/puppetlabs/scheduled_task/trigger_spec.rb index 6cf7b30b..cb52a24c 100644 --- a/spec/unit/puppet_x/puppetlabs/scheduled_task/trigger_spec.rb +++ b/spec/unit/puppet_x/puppetlabs/scheduled_task/trigger_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -# rubocop:disable RSpec/FilePath require 'spec_helper' require 'puppet_x/puppetlabs/scheduled_task/trigger'