Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarin committed Oct 19, 2023
1 parent c655ef8 commit 6cc5559
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/reports/shared_print_phase_count_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@
Cluster.collection.find.delete_many
end
it "gets commitments per phase, puts them in a file" do
# Make 5 umich commitments with phase:3
# and 5 umich with phase 0,
# and 5 smu commitments with phase 3
# Make 5 umich commitments with phase:3 (these we want)
# and 5 umich with phase 0 (decoys)
commitments = []
1.upto(commitment_count) do |_i|
commitments << build(:commitment, organization: org, phase: phase)
commitments << build(:commitment, organization: org, phase: 0)
end
cluster_tap_save(*commitments)
# Verify that the report script sees the 5 with phase 3
# Verify that the report script sees the 5 with phase 3 and no decoys.
expect(report.commitments.count).to eq 5
# Actually run the report and check the output file
report.run
Expand Down

0 comments on commit 6cc5559

Please sign in to comment.