Browse Source

Rename redundant to duplicate

pull/2685/head
Manny Dinssa 2 years ago
parent
commit
c2a0744a93
  1. 2
      lib/tasks/duplicate_rent_periods.rake
  2. 4
      spec/lib/tasks/dupicate_rent_periods_spec.rb

2
lib/tasks/duplicate_rent_periods.rake

@ -33,7 +33,7 @@ def process_duplicate_rent_periods(log_groups: true)
end end
desc "Find and output each group of duplicate rent periods with counts" 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) result = process_duplicate_rent_periods(log_groups: true)
Rails.logger.info "Total number of records: #{OrganisationRentPeriod.count}" Rails.logger.info "Total number of records: #{OrganisationRentPeriod.count}"

4
spec/lib/tasks/dupicate_rent_periods_spec.rb

@ -14,8 +14,8 @@ RSpec.describe "duplicate_rent_periods" do
end end
end end
describe "find_redundant_rent_periods" do describe "find_duplicate_rent_periods" do
let(:task) { Rake::Task["find_redundant_rent_periods"] } let(:task) { Rake::Task["find_duplicate_rent_periods"] }
before do before do
task.reenable task.reenable

Loading…
Cancel
Save