Merge branch '25294-remove-signed-out-msg' into 'master'

fix: 25294 - remove signed_out notification

Closes #25294

See merge request !7958
This commit is contained in:
Sean McGivern 2016-12-12 12:37:23 +00:00
commit 0f6964a385
3 changed files with 12 additions and 1 deletions

View file

@ -37,6 +37,12 @@ class SessionsController < Devise::SessionsController
end
end
def destroy
super
# hide the signed_out notice
flash[:notice] = nil
end
private
# Handle an "initial setup" state, where there's only one user, it's an admin,

View file

@ -0,0 +1,4 @@
---
title: 'fix: removed signed_out notification'
merge_request: 7958
author: jnoortheen

View file

@ -75,7 +75,8 @@ module LoginHelpers
def logout
find(".header-user-dropdown-toggle").click
click_link "Sign out"
expect(page).to have_content('Signed out successfully')
# check the sign_in button
expect(page).to have_button('Sign in')
end
# Logout without JavaScript driver