makes spec more robust

This commit is contained in:
rgarcia
2016-02-17 15:39:22 +01:00
parent c374e3f560
commit afc2b5ffb8

View File

@@ -690,6 +690,9 @@ describe Proposal do
proposal2 = create(:proposal, tag_list: 'Culture')
proposal3 = create(:proposal, tag_list: 'Health')
proposal1.update_column(:confidence_score, 10)
proposal2.update_column(:confidence_score, 9)
expect(Proposal.for_summary).to include('Culture' => [proposal1, proposal2], 'Health' => [proposal3])
end
end