Commit 1ed200ac authored by Robert Speicher's avatar Robert Speicher

Stub LDAP configuration instead of setting it

The old way tainted subsequent tests.
parent a49882e4
......@@ -337,11 +337,11 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
end
step 'LDAP enabled' do
Settings.ldap['enabled'] = true
allow(Gitlab.config.ldap).to receive(:enabled).and_return(true)
end
step 'LDAP disabled' do
Settings.ldap['enabled'] = false
allow(Gitlab.config.ldap).to receive(:enabled).and_return(false)
end
step 'I add a new LDAP synchronization' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment