From 3558e8e416fdc5ff9d574bac085b1e3a26ccc883 Mon Sep 17 00:00:00 2001 From: Andreas Schwarzkopf Date: Tue, 3 Sep 2024 15:30:57 +0200 Subject: [PATCH] Rename RematchingAttempt#auto_finish_empty_task_list --- lib/ioki/model/operator/rematching_attempt.rb | 2 +- spec/ioki/model/operator/rematching_attempt_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ioki/model/operator/rematching_attempt.rb b/lib/ioki/model/operator/rematching_attempt.rb index 4ff59f86..3b836720 100644 --- a/lib/ioki/model/operator/rematching_attempt.rb +++ b/lib/ioki/model/operator/rematching_attempt.rb @@ -20,7 +20,7 @@ class RematchingAttempt < Base on: :read, type: :date_time - attribute :auto_cancel_empty_task_list, + attribute :auto_finish_empty_task_list, on: [:create, :read], omit_if_nil_on: [:create], type: :boolean diff --git a/spec/ioki/model/operator/rematching_attempt_spec.rb b/spec/ioki/model/operator/rematching_attempt_spec.rb index 1f4b9f1a..63ed1b6d 100644 --- a/spec/ioki/model/operator/rematching_attempt_spec.rb +++ b/spec/ioki/model/operator/rematching_attempt_spec.rb @@ -5,7 +5,7 @@ it { is_expected.to define_attribute(:type).as(:string) } it { is_expected.to define_attribute(:created_at).as(:date_time) } it { is_expected.to define_attribute(:updated_at).as(:date_time) } - it { is_expected.to define_attribute(:auto_cancel_empty_task_list).as(:boolean) } + it { is_expected.to define_attribute(:auto_finish_empty_task_list).as(:boolean) } it { is_expected.to define_attribute(:auto_cancel_failed_rematchings).as(:boolean) } it { is_expected.to define_attribute(:finished_at).as(:date_time) } it { is_expected.to define_attribute(:preserve_negotiated_times).as(:boolean) }