From cf1f688d38e8a6331d262677a6e153914e6faeba Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Sun, 19 Jan 2020 12:24:04 +0700 Subject: [PATCH] Move Poll::Question::Answer images tests to the right place --- .../admin/poll/questions/answers/images/images_spec.rb | 9 +++++++++ spec/features/polls/answers_spec.rb | 10 ---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/spec/features/admin/poll/questions/answers/images/images_spec.rb b/spec/features/admin/poll/questions/answers/images/images_spec.rb index b3a2c205e..8469d6669 100644 --- a/spec/features/admin/poll/questions/answers/images/images_spec.rb +++ b/spec/features/admin/poll/questions/answers/images/images_spec.rb @@ -6,6 +6,15 @@ describe "Images" do login_as(admin.user) 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 scenario "Answer with no images" do answer = create(:poll_question_answer) diff --git a/spec/features/polls/answers_spec.rb b/spec/features/polls/answers_spec.rb index 0a98a7397..0c6781418 100644 --- a/spec/features/polls/answers_spec.rb +++ b/spec/features/polls/answers_spec.rb @@ -62,14 +62,4 @@ describe "Answers" do pending "Update" 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