Remove obsolete data creation

This data is obsolete since commit 9d1ca3bf.

Note we should have probably moved the test to the model, since now the
`to_csv` method isn't tested anywhwere, and we should probably add a
test in the future. The code now uses the new DownloadSetting model,
though, making it hard to test.
This commit is contained in:
Javi Martín
2019-09-24 17:38:24 +02:00
parent 748ee3d804
commit fb6d12c8ab

View File

@@ -1715,27 +1715,7 @@ describe "Admin budget investments" do
context "Selecting csv" do context "Selecting csv" do
scenario "Downloading CSV file" do scenario "Downloading CSV file" do
admin = create(:administrator, user: create(:user, username: "Admin")) create(:budget_investment, budget: budget)
valuator = create(:valuator, user: create(:user, username: "Valuator"))
valuator_group = create(:valuator_group, name: "Valuator Group")
budget_group = create(:budget_group, name: "Budget Group", budget: budget)
first_budget_heading = create(:budget_heading, group: budget_group, name: "Budget Heading")
second_budget_heading = create(:budget_heading, group: budget_group, name: "Other Heading")
first_investment = create(:budget_investment, :feasible, :selected, title: "Le Investment",
budget: budget, group: budget_group,
heading: first_budget_heading,
cached_votes_up: 88, price: 99,
valuators: [],
valuator_groups: [valuator_group],
administrator: admin,
visible_to_valuators: true)
second_investment = create(:budget_investment, :unfeasible, title: "Alt Investment",
budget: budget, group: budget_group,
heading: second_budget_heading,
cached_votes_up: 66, price: 88,
valuators: [valuator],
valuator_groups: [],
visible_to_valuators: false)
visit admin_budget_budget_investments_path(budget) visit admin_budget_budget_investments_path(budget)