Fixes welcome specs and adds a couple more tests

This commit is contained in:
kikito
2015-10-08 16:26:41 +02:00
parent f7ac7a526d
commit 4c7dcbed39
2 changed files with 27 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ class Users::SessionsController < Devise::SessionsController
def stored_path_allows_welcome_screen?
stored_path = session[stored_location_key_for(resource)]
stored_path && stored_path[0..5] != "/email"
stored_path.nil? || stored_path[0..5] != "/email"
end
end