Remove unnecessary data in polls spec

This data was added in commit 62088bc6, but the changes in that commit
don't seem to be related to the number of questions in a poll.
This commit is contained in:
Javi Martín
2019-09-24 03:21:45 +02:00
parent ef0330f671
commit e1c09769a8

View File

@@ -485,12 +485,6 @@ describe "Polls" do
scenario "Do not show poll results or stats to admins if disabled" do
poll = create(:poll, :expired, results_enabled: false, stats_enabled: false)
question1 = create(:poll_question, poll: poll)
create(:poll_question_answer, question: question1, title: "Han Solo")
create(:poll_question_answer, question: question1, title: "Chewbacca")
question2 = create(:poll_question, poll: poll)
create(:poll_question_answer, question: question2, title: "Leia")
create(:poll_question_answer, question: question2, title: "Luke")
admin = create(:administrator).user
login_as admin