Small fixes for Poll Question Answer ordering

This commit is contained in:
Bertocq
2017-10-11 12:05:20 +02:00
parent 5ff0047c9f
commit 34c278db74
6 changed files with 15 additions and 15 deletions

View File

@@ -43,8 +43,8 @@ feature 'Answers' do
scenario 'Update' do
question = create(:poll_question)
answer = create(:poll_question_answer, question: question, title: "Answer title", given_order: 1)
answer2 = create(:poll_question_answer, question: question, title: "Another title", given_order: 2)
answer = create(:poll_question_answer, question: question, title: "Answer title", given_order: 2)
answer2 = create(:poll_question_answer, question: question, title: "Another title", given_order: 1)
visit admin_answer_path(answer)