From b2b38914e72ee60915afbeecb92239898c065d3a Mon Sep 17 00:00:00 2001 From: pedrinlopes Date: Tue, 30 Jul 2024 23:04:56 -0300 Subject: [PATCH] Fix cop rules --- spec/non_rails/uber_task/task_skipped_on_error_spec.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/non_rails/uber_task/task_skipped_on_error_spec.rb b/spec/non_rails/uber_task/task_skipped_on_error_spec.rb index 4d9a525..fd86895 100644 --- a/spec/non_rails/uber_task/task_skipped_on_error_spec.rb +++ b/spec/non_rails/uber_task/task_skipped_on_error_spec.rb @@ -1,7 +1,9 @@ +# frozen_string_literal: true + describe UberTask::SkipTask do it 'Skips the task on a error' do task_skipped_after_exception = false - + UberTask.run do UberTask.on_subtask_error do |_task, _event, err| if err.message == 'Some error' @@ -10,11 +12,11 @@ end end - UberTask.run do + UberTask.run do raise 'Some error' if task_skipped_after_exception == false end end - + expect(task_skipped_after_exception).to be(true) end -end \ No newline at end of file +end