Remove unused variables
This commit is contained in:
@@ -135,9 +135,6 @@ describe "Ballots" do
|
|||||||
|
|
||||||
scenario "Redirect to first heading if there is only one" do
|
scenario "Redirect to first heading if there is only one" do
|
||||||
city_heading = create(:budget_heading, group: city, name: "City")
|
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_investment = create(:budget_investment, :selected, heading: city_heading)
|
city_investment = create(:budget_investment, :selected, heading: city_heading)
|
||||||
|
|
||||||
visit budget_path(budget)
|
visit budget_path(budget)
|
||||||
@@ -434,8 +431,6 @@ describe "Ballots" do
|
|||||||
|
|
||||||
scenario "Display links to vote on groups with no investments voted yet" do
|
scenario "Display links to vote on groups with no investments voted yet" do
|
||||||
group = create(:budget_group, budget: budget)
|
group = create(:budget_group, budget: budget)
|
||||||
heading = create(:budget_heading, group: group)
|
|
||||||
ballot = create(:budget_ballot, user: user, budget: budget)
|
|
||||||
|
|
||||||
login_as(user)
|
login_as(user)
|
||||||
visit budget_ballot_path(budget)
|
visit budget_ballot_path(budget)
|
||||||
|
|||||||
@@ -171,7 +171,6 @@ describe "Proposal Notifications" do
|
|||||||
context "Permissions" do
|
context "Permissions" do
|
||||||
|
|
||||||
scenario "Link to send the message" do
|
scenario "Link to send the message" do
|
||||||
_user = create(:user)
|
|
||||||
author = create(:user)
|
author = create(:user)
|
||||||
proposal = create(:proposal, author: author)
|
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) }
|
let(:proposal) { create(:proposal, created_at: created_at, published_at: created_at) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
@successful_proposal_id = Setting["proposals.successful_proposal_id"]
|
|
||||||
Setting["proposals.successful_proposal_id"] = proposal.id
|
Setting["proposals.successful_proposal_id"] = proposal.id
|
||||||
|
|
||||||
8.times do |i|
|
8.times do |i|
|
||||||
|
|||||||
Reference in New Issue
Block a user