Extract LDAP config to seperate class

This commit is contained in:
Jan-Willem van der Meer
2014-10-07 12:22:16 +02:00
parent e23a26aea0
commit e151bbbb28
2 changed files with 97 additions and 0 deletions
+16
View File
@@ -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