From bf7cab29cf3751d7bf47a1e6b031575552fc08e0 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 4 Oct 2017 15:04:34 +0200 Subject: [PATCH] fixes specs --- app/views/admin/poll/questions/_form.html.erb | 6 ------ config/locales/en/admin.yml | 3 --- spec/features/admin/poll/questions_spec.rb | 2 -- 3 files changed, 11 deletions(-) diff --git a/app/views/admin/poll/questions/_form.html.erb b/app/views/admin/poll/questions/_form.html.erb index 5b4de0bcb..56b7ec93f 100644 --- a/app/views/admin/poll/questions/_form.html.erb +++ b/app/views/admin/poll/questions/_form.html.erb @@ -16,12 +16,6 @@ <%= f.text_field :title, maxlength: Poll::Question.title_max_length %> -
- <%= f.cktext_area :description, - maxlength: Poll::Question.description_max_length, - ckeditor: { language: I18n.locale } %> -
-
<%= render 'documents/nested_documents', documentable: @question, f: f %>
diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index 181c3dbc6..fc7082edf 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -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" diff --git a/spec/features/admin/poll/questions_spec.rb b/spec/features/admin/poll/questions_spec.rb index 52e3783f0..7e103c647 100644 --- a/spec/features/admin/poll/questions_spec.rb +++ b/spec/features/admin/poll/questions_spec.rb @@ -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'