Sha256: bcce4b9f4a97ab3eb5a0b8d9a406f63c027347459a52f4a455fc52f6c3469eb8

Contents?: true

Size: 689 Bytes

Versions: 6

Compression:

Stored size: 689 Bytes

Contents

require 'spec_helper'

describe 'Static text question management' do
  let!(:survey) { create :survey }
  let!(:version) { survey.versions.create version: 0 }
  let!(:question_group) { version.question_groups.create title: 'Abakadabara' }
  let!(:question) { create :static_text_question, question_group: question_group }

  scenario 'edits a question' do
    visit edit_survey_version_question_group_questions_static_text_path(survey, version, question_group, question)

    fill_in 'Static text', with: 'This text will be displayed instead of an input'

    click_button 'Save'

    expect(question.reload.default_value).to eq 'This text will be displayed instead of an input'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
helena_administration-0.2.0 spec/features/questions/question_types/manage_static_text_question_spec.rb
helena_administration-0.1.1 spec/features/questions/question_types/manage_static_text_question_spec.rb
helena_administration-0.1.0 spec/features/questions/question_types/manage_static_text_question_spec.rb
helena_administration-0.0.7 spec/features/questions/question_types/manage_static_text_question_spec.rb
helena_administration-0.0.6 spec/features/questions/question_types/manage_static_text_question_spec.rb
helena_administration-0.0.5 spec/features/questions/question_types/manage_static_text_question_spec.rb