Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #10605 - handle logout accessed by GET #3419

Closed
wants to merge 1 commit into from

Conversation

ares
Copy link
Member

@ares ares commented Apr 12, 2016

No description provided.

@@ -210,7 +210,7 @@ class UsersControllerTest < ActionController::TestCase
@controller.stubs(:available_sso).returns(@sso)
@controller.stubs(:get_sso_method).returns(@sso)
get :extlogin, {}, {}
get :logout, {}, {}
post :logout, {}, {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes test that worked accidentally

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the accident? How do we prevent from happening again?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the accident?

GET for :logout didn't exist until now. Functional tests don't go through routes so even PUT :logout would work. But now when GET got a different logic it stopped redirecting the user.

How do we prevent from happening again?

not sure, how about stop writing functional tests? :-)

@ares
Copy link
Member Author

ares commented Apr 13, 2016

I think all comments were addressed.

@dLobatog
Copy link
Member

Merged as 3f579c3, thanks @ares!

@dLobatog dLobatog closed this Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants