mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-22 11:06:10 +10:00
Extract LDAP config to seperate class
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::LDAP::Config do
|
||||
let(:config) { Gitlab::LDAP::Config.new provider }
|
||||
let(:provider) { 'ldapmain' }
|
||||
|
||||
describe :initalize do
|
||||
it 'requires a provider' do
|
||||
expect{ Gitlab::LDAP::Config.new }.to raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "works" do
|
||||
expect(config).to be_a described_class
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user