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

Modified controller and model tests to account for OAuth #4

Merged
merged 2 commits into from
Oct 16, 2018

Conversation

jacquelynoelle
Copy link
Owner

One test failing (below) and still needs work. I suspect it's generating a server error before responding with bad_request because uid is nil (testing invalid data), and the table does not accept null values.


UsersController::auth_callback
test_0003_redirects to the login route if given invalid user data FAIL (0.03s)
Expected response to be a <400: bad_request>, but was a <500: Internal Server Error>.
Expected: 400
Actual: 500
test/controllers/users_controller_test.rb:82:in `block (3 levels) in <top (required)>'

@jacquelynoelle jacquelynoelle merged commit 0bd3580 into master Oct 16, 2018
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.

1 participant