spec/support/utilities.rb
#
# Set options to login with google or fb
Set options to login with google or fb
Set options to login with google or fb
def create_omniauth(opts = {})
  auth = create :auth
  real_auth = auth.merge(opts)
  provider = real_auth[:provider]
  OmniAuth.config.test_mode = true
  OmniAuth.config.mock_auth[provider] = auth
end
def create_omniauth ( opts = { } ) auth = create :auth real_auth = auth . merge ( opts ) provider = real_auth [ :provider ] OmniAuth . config . test_mode = true OmniAuth . config . mock_auth [ provider ] = auth end
Set options to login with google or fb
Set options to login with google or fb
opts
<not_specific>