Add email specs for Poll

This commit is contained in:
Angel Perez
2017-11-13 16:05:10 -04:00
parent 4c110e8100
commit 2bdc2c27d7
8 changed files with 48 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ include ActionView::Helpers::DateHelper
feature 'Commenting polls' do
let(:user) { create :user }
let(:poll) { create :poll }
let(:poll) { create(:poll, author: create(:user)) }
scenario 'Index' do
3.times { create(:comment, commentable: poll) }