Increased test coverage to Following user public page.

This commit is contained in:
taitus
2017-07-13 19:56:31 +02:00
committed by Senén Rodero Rodríguez
parent b0c571e658
commit cef67c50a8
2 changed files with 156 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ class UsersController < ApplicationController
end
def author?(proposal)
proposal.author_id == current_user.id
proposal.author_id == current_user.id if current_user
end
def authorized_current_user?