Reset ldab.enabled setting after test

Should prevent CI failure
parent 8c0ff87f
......@@ -41,6 +41,10 @@ describe Gitlab::LDAP::Access do
Gitlab.config.ldap['admin_group'] = ''
end
after do
Gitlab.config.ldap['enabled'] = false
end
it "syncs ssh keys if enabled by configuration" do
Gitlab.config.ldap['sync_ssh_keys'] = true
expect(access).to receive(:update_ssh_keys).with(user).once
......
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