it "assigns investments ordered by ballot lines until budget is met" do
        create(:budget_investment, :selected, heading: heading, price: 100, ballot_lines_count: 50)
        create(:budget_investment, :selected, heading: heading, price: 300, ballot_lines_count: 80)
        create(:budget_investment, :selected, heading: heading, price: 200, ballot_lines_count: 90)
        create(:budget_investment, :selected, heading: heading, price: 500, ballot_lines_count: 60)