From 75d841e2fe4da632c901ab2b745aba3bd1b2ee68 Mon Sep 17 00:00:00 2001
From: iagirre
Date: Thu, 5 Oct 2017 15:31:21 +0200
Subject: [PATCH] Fixed the correct specs and views to make the test pass.
---
app/views/admin/poll/questions/show.html.erb | 8 --------
spec/features/admin/poll/questions_spec.rb | 18 ------------------
2 files changed, 26 deletions(-)
diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb
index 7037afd5f..959cc0fd4 100644
--- a/app/views/admin/poll/questions/show.html.erb
+++ b/app/views/admin/poll/questions/show.html.erb
@@ -56,13 +56,5 @@
<%= @question.video_url %>
<% end %>
-
- <% if @question.documents.any? %>
-
- <%= t("admin.questions.show.documents") %>
-
- <%= @question.documents.first.title %>
-
- <% end %>
diff --git a/spec/features/admin/poll/questions_spec.rb b/spec/features/admin/poll/questions_spec.rb
index 7e103c647..5c8cba9c1 100644
--- a/spec/features/admin/poll/questions_spec.rb
+++ b/spec/features/admin/poll/questions_spec.rb
@@ -111,22 +111,4 @@ feature 'Admin poll questions' do
pending "Mark all city by default when creating a poll question from a successful proposal"
- it_behaves_like "nested documentable",
- "administrator",
- "poll_question",
- "new_admin_question_path",
- { },
- "documentable_fill_new_valid_poll_question",
- "Save",
- "Star Wars: Episode IV - A New Hope"
-
- it_behaves_like "nested documentable",
- "administrator",
- "poll_question",
- "edit_admin_question_path",
- { "id": "id" },
- nil,
- "Save",
- "Changes saved"
-
end