1
0

omniauth_mocks.rb 172 B

1234567
  1. # frozen_string_literal: true
  2. OmniAuth.config.test_mode = true
  3. def mock_omniauth(provider, data)
  4. OmniAuth.config.mock_auth[provider] = OmniAuth::AuthHash.new(data)
  5. end