Validate presence of 'poll_id' attribute on Poll::Question model
Fixes #1831 On branch aperez-validate-poll-question-is-selected Changes to be committed: modified: app/models/poll/question.rb modified: spec/models/poll/question_spec.rb modified: spec/features/admin/poll/polls_spec.rb
This commit is contained in:
@@ -183,7 +183,7 @@ feature 'Admin polls' do
|
||||
|
||||
scenario 'Add question to poll', :js do
|
||||
poll = create(:poll)
|
||||
question = create(:poll_question, poll: nil, title: 'Should we rebuild the city?')
|
||||
question = create(:poll_question, title: 'Should we rebuild the city?')
|
||||
|
||||
visit admin_poll_path(poll)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user