Tests for courses controller

This commit is contained in:
2015-09-03 17:55:08 -04:00
parent e2d754a96e
commit 0cb363a314
7 changed files with 204 additions and 187 deletions

View File

@@ -15,7 +15,7 @@ module AuthenticationSystem
# apenas verifica se o usuário já está logado ou não. Caso não esteja, ele é redirecionado.
def login_by_html
if !logged_in?
flash[:warning] = 'You must be logged in to access this section of the site'[:login_required]
flash[:warning] = 'You must be logged in to access this section of the site'
session[:return_to] = request.fullpath
redirect_to login_url
end