diff --git a/spec/models/partition_model/cdr_spec.rb b/spec/models/partition_model/cdr_spec.rb index 6643a21ab..2b9d78b79 100644 --- a/spec/models/partition_model/cdr_spec.rb +++ b/spec/models/partition_model/cdr_spec.rb @@ -56,6 +56,7 @@ let(:cdrs_qty) { 5 } before do + Cdr::Cdr.delete_all # Cdr::Cdr.add_partition_for Date.parse('2018-12-02') # Cdr::Cdr.add_partition_for Date.parse('2019-01-15') FactoryBot.create_list :cdr, cdrs_qty, time_start: Date.parse('2018-12-02')