mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:21:12 +08:00
UX: Show a nicer "Log In" screen if the user follows /my/preferences
This commit is contained in:
@ -1430,10 +1430,10 @@ describe UsersController do
|
||||
|
||||
describe '.my_redirect' do
|
||||
|
||||
it "returns 404 if the user is not logged in" do
|
||||
it "redirects if the user is not logged in" do
|
||||
get :my_redirect, path: "wat"
|
||||
expect(response).not_to be_success
|
||||
expect(response).not_to be_redirect
|
||||
expect(response).to be_redirect
|
||||
end
|
||||
|
||||
context "when the user is logged in" do
|
||||
|
Reference in New Issue
Block a user