Added tests

This commit is contained in:
María Checa
2017-12-15 17:32:18 +01:00
parent 067945518e
commit 5f4b179f3e

View File

@@ -159,6 +159,13 @@ feature 'Proposals' do
end
end
scenario 'related contents list is not rendered if there are no relations' do
proposal = create(:proposal)
visit proposal_path(proposal)
expect(page).to_not have_css("#related-content-list")
end
scenario 'related contents can be added' do
proposal1 = create(:proposal)
proposal2 = create(:proposal)