Remove unused variables

This commit is contained in:
Javi Martín
2019-09-26 01:36:53 +02:00
parent 7ee9c0d042
commit 087b4bf2a6
3 changed files with 1 additions and 8 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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|