fixes specs

This commit is contained in:
Juanjo Bazán
2017-05-09 17:52:52 +02:00
parent 81c4a13305
commit 1d35bdeb85

View File

@@ -73,6 +73,7 @@ feature 'Budget Investments' do
end
scenario "by unfeasibilty link for group with one heading" do
budget.update(phase: :balloting)
group = create(:budget_group, name: 'All City', budget: budget)
heading = create(:budget_heading, name: "Madrid", group: group)
@@ -86,6 +87,7 @@ feature 'Budget Investments' do
end
scenario "by unfeasibilty link for group with many headings" do
budget.update(phase: :balloting)
group = create(:budget_group, name: 'Districts', budget: budget)
heading1 = create(:budget_heading, name: 'Carabanchel', group: group)
heading2 = create(:budget_heading, name: 'Barajas', group: group)