Load answer through question in answers controller

We are simplifying the load answer and we can remove the ambiguous
hidden field from answer form.
This commit is contained in:
taitus
2022-09-09 15:56:36 +02:00
parent 01005b50cb
commit 405b37f605
9 changed files with 14 additions and 20 deletions

View File

@@ -36,7 +36,7 @@ describe "Answers", :admin do
answer = create(:poll_question_answer, question: question, title: "Answer title", given_order: 2)
create(:poll_question_answer, question: question, title: "Another title", given_order: 1)
visit admin_answer_path(answer)
visit admin_question_answer_path(question, answer)
click_link "Edit answer"