Sha256: d4797ac8ef130d5e0a9bc173ea670f9004b44386ba8e6cacd1dbac6990200b7f
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
require 'spec_helper' feature 'Static text question management' do let!(:draft_version) { create :version, survey: create(:survey), version: 0 } scenario 'edits a question' do question = create :static_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) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helena-0.3.3 | spec/features/helena/admin/question_types/manage_static_text_question_spec.rb |