Fix typo in proposals spec

The test passed even if proposal recommendations returned archived
proposals, because we forgot to add the tag list the user is interested
in.
This commit is contained in:
Javi Martín
2019-09-26 00:28:50 +02:00
parent 028f1e3fc4
commit 97375f557f

View File

@@ -1033,7 +1033,7 @@ describe Proposal do
it "does not return archived proposals" do
proposal1 = create(:proposal, cached_votes_up: 5, tag_list: "Sport")
proposal2 = create(:proposal, cached_votes_up: 5, tag_list: "Sport")
archived_proposal = create(:proposal, :archived)
archived_proposal = create(:proposal, :archived, tag_list: "Sport")
create(:follow, followable: proposal1, user: user)
result = Proposal.recommendations(user)