summaryrefslogtreecommitdiff
path: root/ee/spec/controllers/ldap/omniauth_callbacks_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ee/spec/controllers/ldap/omniauth_callbacks_controller_spec.rb')
-rw-r--r--ee/spec/controllers/ldap/omniauth_callbacks_controller_spec.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/ee/spec/controllers/ldap/omniauth_callbacks_controller_spec.rb b/ee/spec/controllers/ldap/omniauth_callbacks_controller_spec.rb
deleted file mode 100644
index 0835ff35846..00000000000
--- a/ee/spec/controllers/ldap/omniauth_callbacks_controller_spec.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-require 'spec_helper'
-
-describe Ldap::OmniauthCallbacksController do
- include_context 'Ldap::OmniauthCallbacksController'
-
- it "displays LDAP sync flash on first sign in" do
- post provider
-
- expect(flash[:notice]).to match(/LDAP sync in progress*/)
- end
-
- it "skips LDAP sync flash on subsequent sign ins" do
- user.update!(sign_in_count: 1)
-
- post provider
-
- expect(flash[:notice]).to eq nil
- end
-
- context 'access denied' do
- let(:valid_login?) { false }
-
- it 'logs a failure event' do
- stub_licensed_features(extended_audit_events: true)
-
- expect { post provider }.to change(SecurityEvent, :count).by(1)
- end
- end
-end