Adds settings for featured proposals

This commit is contained in:
decabeza
2018-11-29 19:11:58 +01:00
parent 609d2083f8
commit 37da986014
8 changed files with 35 additions and 9 deletions

View File

@@ -18,6 +18,8 @@ feature 'Proposals' do
before do
Setting['feature.allow_images'] = true
Setting['feature.featured_proposals'] = true
Setting['featured_proposals_number'] = 3
end
after do
@@ -92,6 +94,7 @@ feature 'Proposals' do
click_link "Next", exact: false
end
expect(page).to have_selector('#proposals .proposal-featured', count: 3)
expect(page).to have_selector('#proposals .proposal', count: 2)
end