Coverage for Auth::OmniauthCallbacks
controller (#26147)
This commit is contained in:
parent
f826a95f6e
commit
50ff3d3342
4 changed files with 163 additions and 11 deletions
7
spec/support/omniauth_mocks.rb
Normal file
7
spec/support/omniauth_mocks.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue