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

@@ -17,6 +17,7 @@ class Admin::Poll::PollsController < Admin::Poll::BaseController
end
def create
@poll = Poll.new(poll_params.merge(author: current_user))
if @poll.save
redirect_to [:admin, @poll], notice: t("flash.actions.create.poll")
else