mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 07:11:26 +08:00
Faraday [updated their authentication/authorization middleware in version 2](https://github.com/lostisland/faraday/pull/1306), which was a breaking change for the Twitter auth health check. The relevant test was manually mocking and stubbing the individual Faraday objects, so the relevant code path wasn't exercised by our tests. This commit: - Updates the test to use `stub_request` instead. (This correctly catches the deprecated method error.) - Updates the health check to use the new middleware. |
||
|---|---|---|
| .. | ||
| default_current_user_provider_spec.rb | ||
| discord_authenticator_spec.rb | ||
| discourse_id_authenticator_spec.rb | ||
| facebook_authenticator_spec.rb | ||
| github_authenticator_spec.rb | ||
| google_oauth2_authenticator_spec.rb | ||
| linkedin_oidc_authenticator_spec.rb | ||
| managed_authenticator_spec.rb | ||
| result_spec.rb | ||
| twitter_authenticator_spec.rb | ||