Coverage for Auth::OmniauthCallbacks controller (#26147)

This commit is contained in:
Matt Jankowski
2023-07-25 03:46:57 -04:00
committed by GitHub
parent f826a95f6e
commit 50ff3d3342
4 changed files with 163 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
OmniAuth.config.test_mode = true
def mock_omniauth(provider, data)
OmniAuth.config.mock_auth[provider] = OmniAuth::AuthHash.new(data)
end