Sha256: 5a964a6b6a74da3a0271af9d56ad4408b2bc78b728dfb8f4f38b9747af12f604
Contents?: true
Size: 739 Bytes
Versions: 6
Compression:
Stored size: 739 Bytes
Contents
require 'spec_helper' describe 'Long 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 :long_text_question, question_group: question_group } scenario 'edits a question' do visit edit_survey_version_question_group_questions_long_text_path(survey, version, 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
6 entries across 6 versions & 1 rubygems