Move Poll::Question::Answer images tests to the right place

This commit is contained in:
Julian Herrero
2020-01-19 12:24:04 +07:00
parent 34c75fec4b
commit cf1f688d38
2 changed files with 9 additions and 10 deletions

View File

@@ -6,6 +6,15 @@ describe "Images" do
login_as(admin.user) login_as(admin.user)
end end
it_behaves_like "nested imageable",
"poll_question_answer",
"new_admin_answer_image_path",
{ "answer_id": "id" },
nil,
"Save image",
"Image uploaded successfully",
true
context "Index" do context "Index" do
scenario "Answer with no images" do scenario "Answer with no images" do
answer = create(:poll_question_answer) answer = create(:poll_question_answer)

View File

@@ -62,14 +62,4 @@ describe "Answers" do
pending "Update" pending "Update"
pending "Destroy" pending "Destroy"
context "Gallery" do
it_behaves_like "nested imageable",
"poll_question_answer",
"new_admin_answer_image_path",
{ "answer_id": "id" },
nil,
"Save image",
"Image uploaded successfully",
true
end
end end