20171004 - Refactored specs for polls comments

On branch mlucena-poll-comments
 Changes to be committed:
	modified:   app/views/comments/show.html.erb
	modified:   spec/features/polls/polls_spec.rb
This commit is contained in:
Manuel Lucena
2017-10-04 15:23:24 +02:00
parent 63cbe2f7c1
commit c3d7d47c3f
2 changed files with 49 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
<div class="row">
<div class="small-12 column margin-top">
<%= back_link_to commentable_path(@comment),
t("comments.show.return_to_commentable") + @comment.commentable.title %>
t("comments.show.return_to_commentable") + @comment.commentable.title unless @comment != "Poll" %>
</div>
</div>