From 01862d66642a27f435d875229c1f30732bc6741b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 24 Sep 2019 04:26:35 +0200 Subject: [PATCH] Remove unused attributes creating a heading The "name" attribute is automatically generated by the budget heading factory. And the "price" attribute is out of context and not needed since this test doesn't create investments. --- spec/features/budgets/ballots_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/budgets/ballots_spec.rb b/spec/features/budgets/ballots_spec.rb index 707dbf0da..11e5b3eaa 100644 --- a/spec/features/budgets/ballots_spec.rb +++ b/spec/features/budgets/ballots_spec.rb @@ -434,8 +434,7 @@ describe "Ballots" do scenario "Display links to vote on groups with no investments voted yet" do group = create(:budget_group, budget: budget) - heading = create(:budget_heading, name: "District 1", group: group, price: 100) - + heading = create(:budget_heading, group: group) ballot = create(:budget_ballot, user: user, budget: budget) login_as(user)