Remove unused variables
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user