Fixed the correct specs and views to make the test pass.

This commit is contained in:
iagirre
2017-10-05 15:31:21 +02:00
parent 5b129b933f
commit 75d841e2fe
2 changed files with 0 additions and 26 deletions

View File

@@ -56,13 +56,5 @@
<a href="<%= @question.video_url %>"><%= @question.video_url %></a> <a href="<%= @question.video_url %>"><%= @question.video_url %></a>
</p> </p>
<% end %> <% end %>
<% if @question.documents.any? %>
<p>
<strong><%= t("admin.questions.show.documents") %></strong>
<br>
<a href="<%= @question.documents.first.attachment.url %>"><%= @question.documents.first.title %></a>
</p>
<% end %>
</div> </div>
</div> </div>

View File

@@ -111,22 +111,4 @@ feature 'Admin poll questions' do
pending "Mark all city by default when creating a poll question from a successful proposal" 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 end