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

rspec failure - callback_path null pointer #74

Merged
merged 3 commits into from
Sep 26, 2022

Conversation

btalbot
Copy link
Contributor

@btalbot btalbot commented May 19, 2021

One spec test for #callback_path is failing due to the rack env not being available.

The setup is done in the OAuth2#authorize_params method for some reason which must be called after all options under test are configured but before any methods that expect the setup to be complete: so not easy to find a single location to always call it.

This fixes the issue when testing the callback_path configuration. I don't know why this worked in the past but something probably changed in an upstream library to expose this issue recently.

@btalbot
Copy link
Contributor Author

btalbot commented May 19, 2021

Note that this bug only affects spec tests as real use has the environment properly configured when called via Rack

@btalbot btalbot changed the title Bug callback_path null pointer rspec failure - callback_path null pointer May 20, 2021
Copy link

@harry-herskowitz harry-herskowitz left a 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

@nov nov merged commit 6f5650e into nhosoya:master Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants