Use config_for for omniauth enabled values (#35015)
This commit is contained in:
@@ -129,15 +129,15 @@ RSpec.describe 'OmniAuth callbacks' do
|
||||
end
|
||||
end
|
||||
|
||||
describe '#openid_connect', if: ENV['OIDC_ENABLED'] == 'true' && ENV['OIDC_SCOPE'].present? do
|
||||
describe '#openid_connect', if: Rails.configuration.x.omniauth.oidc_enabled? && ENV['OIDC_SCOPE'].present? do
|
||||
it_behaves_like 'omniauth provider callbacks', :openid_connect
|
||||
end
|
||||
|
||||
describe '#cas', if: ENV['CAS_ENABLED'] == 'true' do
|
||||
describe '#cas', if: Rails.configuration.x.omniauth.cas_enabled? do
|
||||
it_behaves_like 'omniauth provider callbacks', :cas
|
||||
end
|
||||
|
||||
describe '#saml', if: ENV['SAML_ENABLED'] == 'true' do
|
||||
describe '#saml', if: Rails.configuration.x.omniauth.saml_enabled? do
|
||||
it_behaves_like 'omniauth provider callbacks', :saml
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user