From c2a0744a93398ed001c56bd8b6afd4ab258ea61e Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:23:23 +0100 Subject: [PATCH] Rename redundant to duplicate --- lib/tasks/duplicate_rent_periods.rake | 2 +- spec/lib/tasks/dupicate_rent_periods_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tasks/duplicate_rent_periods.rake b/lib/tasks/duplicate_rent_periods.rake index b2f84d3c0..a5cedbfbe 100644 --- a/lib/tasks/duplicate_rent_periods.rake +++ b/lib/tasks/duplicate_rent_periods.rake @@ -33,7 +33,7 @@ def process_duplicate_rent_periods(log_groups: true) end desc "Find and output each group of duplicate rent periods with counts" -task find_redundant_rent_periods: :environment do +task find_duplicate_rent_periods: :environment do result = process_duplicate_rent_periods(log_groups: true) Rails.logger.info "Total number of records: #{OrganisationRentPeriod.count}" diff --git a/spec/lib/tasks/dupicate_rent_periods_spec.rb b/spec/lib/tasks/dupicate_rent_periods_spec.rb index 00dd05a67..58d29ba28 100644 --- a/spec/lib/tasks/dupicate_rent_periods_spec.rb +++ b/spec/lib/tasks/dupicate_rent_periods_spec.rb @@ -14,8 +14,8 @@ RSpec.describe "duplicate_rent_periods" do end end - describe "find_redundant_rent_periods" do - let(:task) { Rake::Task["find_redundant_rent_periods"] } + describe "find_duplicate_rent_periods" do + let(:task) { Rake::Task["find_duplicate_rent_periods"] } before do task.reenable