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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user