Add "signed in as" header to some pages (#4523)
This commit is contained in:
parent
029786442a
commit
df605f0f8b
40 changed files with 105 additions and 57 deletions
|
@ -28,7 +28,7 @@ RSpec.describe Auth::SessionsController, type: :controller do
|
|||
sign_in(user, scope: :user)
|
||||
delete :destroy
|
||||
|
||||
expect(response).to redirect_to(root_path)
|
||||
expect(response).to redirect_to(new_user_session_path)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -38,7 +38,7 @@ RSpec.describe Auth::SessionsController, type: :controller do
|
|||
sign_in(user, scope: :user)
|
||||
delete :destroy
|
||||
|
||||
expect(response).to redirect_to(root_path)
|
||||
expect(response).to redirect_to(new_user_session_path)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue