Adds "Admin ballots" button in admin budgets index

This commit is contained in:
María Checa
2018-06-07 18:31:57 +02:00
committed by Javi Martín
parent 7dd314c699
commit f6739dc7e5
4 changed files with 20 additions and 0 deletions

View File

@@ -88,6 +88,16 @@ feature "Admin budgets" do
end
end
scenario "Admin ballots link appears if budget has a poll associated" do
budget = create(:budget)
create(:poll, budget: budget)
visit admin_budgets_path
within "#budget_#{budget.id}" do
expect(page).to have_link("Admin ballots")
end
end
end
context "New" do