spec/resource_spec.rb in survey-gizmo-ruby-6.2.11 vs spec/resource_spec.rb in survey-gizmo-ruby-6.2.12

- old
+ new

@@ -260,11 +260,12 @@ '[question(9), option(10002)]' => '16', '[question(10), question_pipe("Que aplicaciĆ³n")]' => '5 = Extremely important', '[question(11), question_pipe(10527)]' => 'This product was too expensive', # Sometimes surveygizmo only includes the option with the "other" answer. =( '[question(12)]' => 'Other - Please explain', - '[question(12), option("10017-other")]' => 'I understood...' + '[question(12), option("10017-other")]' => 'I understood...', + '[question(13), option(0)]' => '12345' } end it 'should propagate time, survey_id, and response_id' do response = described_class.new( @@ -282,10 +283,11 @@ { survey_id: 1, question_id: 5, answer_text: 'VERY important' }, { survey_id: 1, question_id: 8, answer_text: 'false' }, { survey_id: 1, question_id: 9, option_id: 10002 }, { survey_id: 1, question_id: 10, question_pipe: 'Que aplicaciĆ³n', answer_text: '5 = Extremely important' }, { survey_id: 1, question_id: 11, question_pipe: '10527', answer_text: 'This product was too expensive' }, - { survey_id: 1, question_id: 12, option_id: 10017, other_text: 'I understood...' } + { survey_id: 1, question_id: 12, option_id: 10017, other_text: 'I understood...' }, + { survey_id: 1, question_id: 13, answer_text: '12345' } ]) end end end