Sha256: b77cfc73c319477f62dcad9a8947514ba6949d743ffa7b76b89a21cb1285df94
Contents?: true
Size: 943 Bytes
Versions: 7
Compression:
Stored size: 943 Bytes
Contents
require 'rails_helper' module MnoEnterprise describe Auth::OmniauthCallbacksController, type: :controller do routes { MnoEnterprise::Engine.routes } supported_providers = %i(linkedin google facebook) describe 'provides callbacks for the providers' do before do Devise.omniauth :facebook, 'key', 'secret', secure_image_url: true MnoEnterprise::Auth.send(:remove_const, :OmniauthCallbacksController) load 'app/controllers/mno_enterprise/auth/omniauth_callbacks_controller.rb' end # No described_class as it doesn't take into account the reloading above let(:controller) { MnoEnterprise::Auth::OmniauthCallbacksController.new } it { expect(controller).to respond_to(:intuit) } it { expect(controller).to respond_to(:facebook) } end # it creates an org? # no if no email # no if user already exists # no if accepting an org invite end end
Version data entries
7 entries across 7 versions & 1 rubygems