Moving spec to budget_polls folder
This commit is contained in:
@@ -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
|
||||
|
||||
21
spec/features/budget_polls/budgets_spec.rb
Normal file
21
spec/features/budget_polls/budgets_spec.rb
Normal 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
|
||||
Reference in New Issue
Block a user