Move Poll::Question::Answer images tests to the right place
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user