From 77835474190582bb40082bc9f2dec54efb151022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 29 Sep 2019 17:37:08 +0200 Subject: [PATCH] Remove rest of unused variables I haven't found an elegant way to remove them, but since they were the only three variables left out of 383 we used to have, I can live with this low percentage of inelegant solutions. --- .../features/admin/poll/questions/answers/answers_spec.rb | 2 +- spec/features/tags/debates_spec.rb | 8 ++++---- spec/features/tags/proposals_spec.rb | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/features/admin/poll/questions/answers/answers_spec.rb b/spec/features/admin/poll/questions/answers/answers_spec.rb index 96212cd48..4ed637f38 100644 --- a/spec/features/admin/poll/questions/answers/answers_spec.rb +++ b/spec/features/admin/poll/questions/answers/answers_spec.rb @@ -40,7 +40,7 @@ describe "Answers" do scenario "Update" do question = create(:poll_question) answer = create(:poll_question_answer, question: question, title: "Answer title", given_order: 2) - answer2 = create(:poll_question_answer, question: question, title: "Another title", given_order: 1) + create(:poll_question_answer, question: question, title: "Another title", given_order: 1) visit admin_answer_path(answer) diff --git a/spec/features/tags/debates_spec.rb b/spec/features/tags/debates_spec.rb index 2cc2b86ff..d54fde94a 100644 --- a/spec/features/tags/debates_spec.rb +++ b/spec/features/tags/debates_spec.rb @@ -168,16 +168,16 @@ describe "Tags" do end scenario "From show" do - debate1 = create(:debate, tag_list: "Education") - debate2 = create(:debate, tag_list: "Health") + debate = create(:debate, tag_list: "Education") + create(:debate, tag_list: "Health") - visit debate_path(debate1) + visit debate_path(debate) click_link "Education" within("#debates") do expect(page).to have_css(".debate", count: 1) - expect(page).to have_content(debate1.title) + expect(page).to have_content(debate.title) end end diff --git a/spec/features/tags/proposals_spec.rb b/spec/features/tags/proposals_spec.rb index 348d198f4..fdf7bb813 100644 --- a/spec/features/tags/proposals_spec.rb +++ b/spec/features/tags/proposals_spec.rb @@ -202,16 +202,16 @@ describe "Tags" do end scenario "From show" do - proposal1 = create(:proposal, tag_list: "Education") - proposal2 = create(:proposal, tag_list: "Health") + proposal = create(:proposal, tag_list: "Education") + create(:proposal, tag_list: "Health") - visit proposal_path(proposal1) + visit proposal_path(proposal) click_link "Education" within("#proposals") do expect(page).to have_css(".proposal", count: 1) - expect(page).to have_content(proposal1.title) + expect(page).to have_content(proposal.title) end end