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

@@ -216,7 +216,7 @@ describe "Admin edit translatable records", :admin do
context "CKEditor fields" do
let(:translatable) { create(:poll_question_answer) }
let(:path) { edit_admin_answer_path(translatable) }
let(:path) { edit_admin_question_answer_path(translatable.question, translatable) }
scenario "Changes the existing translation" do
visit path