fixes specs
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user