Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-01-28 | Refactor and improve tests (#17386) | Claire | |
* Change account and user fabricators to simplify and improve tests - `Fabricate(:account)` implicitly fabricates an associated `user` if no `domain` attribute is given (an account with `domain: nil` is considered a local account, but no user record was created), unless `user: nil` is passed - `Fabricate(:account, user: Fabricate(:user))` should still be possible but is discouraged. * Fix and refactor tests - avoid passing unneeded attributes to `Fabricate(:user)` or `Fabricate(:account)` - avoid embedding `Fabricate(:user)` into a `Fabricate(:account)` or the other way around - prefer `Fabricate(:user, account_attributes: …)` to `Fabricate(:user, account: Fabricate(:account, …)` - also, some tests were using remote accounts with local user records, which is not representative of production code. | |||
2021-07-08 | Add ability to skip sign-in token authentication for specific users (#16427) | Eugen Rochko | |
Remove "active within last two weeks" exception for sign in token requirement Change admin reset password to lock access until the password is reset | |||
2017-05-29 | Spec Admin::ResetsController calls send_reset_password_instructions (#3354) | Akihiko Odaki | |
2017-04-28 | More controller specs (#2561) | Matt Jankowski | |
* Add render_views in more places * Delegate methods from account to user with allow nil true, so that admin accounts show view renders when missing a user * Use actual account instances in authorize follow controller spec | |||
2017-04-15 | Add password reset for users from admin accounts area (#1841) | Matt Jankowski | |