diff --git a/spec/queries/count_classifications_spec.rb b/spec/queries/count_classifications_spec.rb index 67d1e24..be04b2c 100644 --- a/spec/queries/count_classifications_spec.rb +++ b/spec/queries/count_classifications_spec.rb @@ -169,6 +169,7 @@ it 'adds the most recent period to the most recently pulled period counts' do create(:classification_with_diff_workflow, classification_id: 1000, event_time: Date.new(2022, 1, 2)) expect(counts.length).to eq(1) + # the 2 classifications counted is the one created in L170 as well as diff_workflow_event classification. expect(counts[0].count).to eq(2) expect(counts[0].period).to eq(Date.today.at_beginning_of_year) end