This change improves the performance of the capped_count_by_severity scope specs by reducing the number of test records created and creating the test records once for all the specs.
capped_count_by_severity