spec/lib/survey_importer_spec.rb in helena-1.0.0.rc1 vs spec/lib/survey_importer_spec.rb in helena-1.0.0.rc2
- old
+ new
@@ -7,8 +7,12 @@
expect(survey).to have_exactly(1).versions
expect(survey.versions.first).to have_exactly(1).question_groups
expect(survey.versions.first.question_groups.first).to have_exactly(1).questions
expect(survey.versions.first.question_groups.first.questions.first).to have_exactly(7).labels
+ expect(survey.versions.first.question_groups.first.questions.first.labels.first.position).to eq 1
+ expect(survey.versions.first.question_groups.first.questions.first.labels.last.position).to eq 7
expect(survey.versions.first.question_groups.first.questions.first).to have_exactly(5).sub_questions
+ expect(survey.versions.first.question_groups.first.questions.first.sub_questions.first.position).to eq 1
+ expect(survey.versions.first.question_groups.first.questions.first.sub_questions.last.position).to eq 5
end
end