-
Notifications
You must be signed in to change notification settings - Fork 744
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
[Issue #1832] Refactor omniauth callbacks controller spec to request spec #1907
[Issue #1832] Refactor omniauth callbacks controller spec to request spec #1907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good job on this test! I was wondering about how to go about with stubbing the omniauth calls myself when I took a look at this myself so I thought this was a trickier one. I got a few comments around to make the test a bit neater, but overall, this is really good! I'd probably move some of those methods in this test to a stub_omniauth.rb
spec support to separate the concerns and in case there's a different test that would require stubbing omniauth as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Description
This refactors the tests associated with the SecretSharesController to use RSpec request type tests instead of controller
Corresponding Issue
Fixes #1832
Parent issue: #1815
Reviewing this pull request? Check out our Code Review Practices guide if you haven't already!