adds featured proposals
via new action featured_vote Featured proposals are never duplicated in the filtered lists Featured are not calculated/shown in searches.
This commit is contained in:
committed by
Juanjo Bazán
parent
c896fc3eef
commit
1136c5546a
@@ -161,4 +161,10 @@ module CommonActions
|
||||
expect(page).to have_selector('.in-favor a', visible: false)
|
||||
end
|
||||
|
||||
def create_featured_proposals
|
||||
[create(:proposal, :with_confidence_score, cached_votes_up: 100),
|
||||
create(:proposal, :with_confidence_score, cached_votes_up: 90),
|
||||
create(:proposal, :with_confidence_score, cached_votes_up: 80)]
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user