forked from lynndylanhurley/devise_token_auth
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect
assert
statements (they should be assert_equal
).
- This exposes a bug in the test: placing the `get` request within a before block prevents any correct response from secondary requests (w/ forbidden params), and causes intermittent test failures. - Also exposes a bug in `DTA::Concerns::User#remove_tokens_after_password_reset`: Assuming the test is correct, the implementation should sort client/tokens by `:updated_at` timestamp rather by token `:expiry`. This makes sense because `:expiry` **could** be `nil`. (If the test were to age client/tokens by `:expiry` instead, the original implementation would be correct.)
- Loading branch information
Showing
2 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters