From 97375f557faa5e02a56be6cdb890f5aaf057ba3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 26 Sep 2019 00:28:50 +0200 Subject: [PATCH] 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. --- spec/models/proposal_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/proposal_spec.rb b/spec/models/proposal_spec.rb index f5492fca7..359ddd07c 100644 --- a/spec/models/proposal_spec.rb +++ b/spec/models/proposal_spec.rb @@ -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)