diff --git a/spec/features/budgets/ballots_spec.rb b/spec/features/budgets/ballots_spec.rb index 478055de4..af6389666 100644 --- a/spec/features/budgets/ballots_spec.rb +++ b/spec/features/budgets/ballots_spec.rb @@ -134,10 +134,7 @@ describe "Ballots" do end scenario "Redirect to first heading if there is only one" do - city_heading = create(:budget_heading, group: city, name: "City") - district_heading1 = create(:budget_heading, group: districts, name: "District 1") - district_heading2 = create(:budget_heading, group: districts, name: "District 2") - + city_heading = create(:budget_heading, group: city, name: "City") city_investment = create(:budget_investment, :selected, heading: city_heading) visit budget_path(budget) @@ -434,8 +431,6 @@ 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, group: group) - ballot = create(:budget_ballot, user: user, budget: budget) login_as(user) visit budget_ballot_path(budget) diff --git a/spec/features/proposal_notifications_spec.rb b/spec/features/proposal_notifications_spec.rb index bc7d509a5..b239f9451 100644 --- a/spec/features/proposal_notifications_spec.rb +++ b/spec/features/proposal_notifications_spec.rb @@ -171,7 +171,6 @@ describe "Proposal Notifications" do context "Permissions" do scenario "Link to send the message" do - _user = create(:user) author = create(:user) proposal = create(:proposal, author: author) diff --git a/spec/requests/dashboard/successful_supports_spec.rb b/spec/requests/dashboard/successful_supports_spec.rb index b08357ff4..9e61a36b7 100644 --- a/spec/requests/dashboard/successful_supports_spec.rb +++ b/spec/requests/dashboard/successful_supports_spec.rb @@ -5,7 +5,6 @@ describe "Retrieves number of supports for the successful proposal" do let(:proposal) { create(:proposal, created_at: created_at, published_at: created_at) } before do - @successful_proposal_id = Setting["proposals.successful_proposal_id"] Setting["proposals.successful_proposal_id"] = proposal.id 8.times do |i|