Moving spec to budget_polls folder

This commit is contained in:
rgarcia
2018-06-11 19:17:59 +02:00
committed by Javi Martín
parent 22727a9876
commit b1b88918f0
2 changed files with 21 additions and 10 deletions

View File

@@ -88,16 +88,6 @@ 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

View File

@@ -0,0 +1,21 @@
require "rails_helper"
feature "Admin Budgets" do
background do
admin = create(:administrator).user
login_as(admin)
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