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