Fixed the correct specs and views to make the test pass.
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user