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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user