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.
This commit is contained in:
Javi Martín
2019-09-29 17:37:08 +02:00
parent f5fe8c1279
commit 7783547419
3 changed files with 9 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ describe "Answers" do
scenario "Update" do scenario "Update" do
question = create(:poll_question) question = create(:poll_question)
answer = create(:poll_question_answer, question: question, title: "Answer title", given_order: 2) 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) visit admin_answer_path(answer)

View File

@@ -168,16 +168,16 @@ describe "Tags" do
end end
scenario "From show" do scenario "From show" do
debate1 = create(:debate, tag_list: "Education") debate = create(:debate, tag_list: "Education")
debate2 = create(:debate, tag_list: "Health") create(:debate, tag_list: "Health")
visit debate_path(debate1) visit debate_path(debate)
click_link "Education" click_link "Education"
within("#debates") do within("#debates") do
expect(page).to have_css(".debate", count: 1) expect(page).to have_css(".debate", count: 1)
expect(page).to have_content(debate1.title) expect(page).to have_content(debate.title)
end end
end end

View File

@@ -202,16 +202,16 @@ describe "Tags" do
end end
scenario "From show" do scenario "From show" do
proposal1 = create(:proposal, tag_list: "Education") proposal = create(:proposal, tag_list: "Education")
proposal2 = create(:proposal, tag_list: "Health") create(:proposal, tag_list: "Health")
visit proposal_path(proposal1) visit proposal_path(proposal)
click_link "Education" click_link "Education"
within("#proposals") do within("#proposals") do
expect(page).to have_css(".proposal", count: 1) expect(page).to have_css(".proposal", count: 1)
expect(page).to have_content(proposal1.title) expect(page).to have_content(proposal.title)
end end
end end