fixes specs

This commit is contained in:
rgarcia
2017-10-04 15:04:34 +02:00
parent 44d0c04e38
commit bf7cab29cf
3 changed files with 0 additions and 11 deletions

View File

@@ -16,12 +16,6 @@
<%= f.text_field :title, maxlength: Poll::Question.title_max_length %>
<div class="ckeditor">
<%= f.cktext_area :description,
maxlength: Poll::Question.description_max_length,
ckeditor: { language: I18n.locale } %>
</div>
<div class="documents small-12">
<%= render 'documents/nested_documents', documentable: @question, f: f %>
</div>

View File

@@ -597,12 +597,9 @@ en:
description: Description
video_url: External video
documents: Documents (1)
preview: View on website
answers:
new:
title: "New answer"
video_url: External video
documents: Documents (1)
recounts:
index:
title: "Recounts"

View File

@@ -25,7 +25,6 @@ feature 'Admin poll questions' do
expect(page).to have_content(question.title)
expect(page).to have_content(question.author.name)
expect(page).to have_content(question.valid_answers.join(" "))
end
scenario 'Create' do
@@ -61,7 +60,6 @@ feature 'Admin poll questions' do
expect(current_path).to eq(new_admin_question_path)
expect(page).to have_field('poll_question_title', with: proposal.title)
expect(page).to have_field('poll_question_valid_answers', with: "Yes, No")
select 'Proposals', from: 'poll_question_poll_id'