debian-mirror-gitlab/spec/lib/gitlab/auth/saml/config_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
412 B
Ruby
Raw Normal View History

2022-07-16 23:28:13 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Auth::Saml::Config do
describe '.enabled?' do
subject { described_class.enabled? }
it { is_expected.to eq(false) }
context 'when SAML is enabled' do
before do
allow(Gitlab::Auth::OAuth::Provider).to receive(:providers).and_return([:saml])
end
it { is_expected.to eq(true) }
end
end
end