Sha256: f7957eb093cf7b13abfc2995a88b9e2ef9c7034260d356a0869896ea698054de
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
require 'spec_helper' feature 'Long text question management' do let!(:draft_version) { create :version, survey: create(:survey), version: 0 } scenario 'edits a question' do question = create :long_text_question, question_group: create(:question_group, version: draft_version) visit helena.edit_admin_survey_question_group_question_path(draft_version.survey, question.question_group, question) a_very_long_text = Faker::Lorem.paragraph(20) fill_in 'Default value', with: a_very_long_text check 'Required' click_button 'Save' expect(question.reload.default_value).to eq a_very_long_text expect(question.reload.required).to eq true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helena-0.3.3 | spec/features/helena/admin/question_types/manage_long_text_question_spec.rb |