Sha256: b6cf68041a20910812f06aae6297e133c2010dc0442e02844439b4689eb86ff4

Contents?: true

Size: 420 Bytes

Versions: 9

Compression:

Stored size: 420 Bytes

Contents

require 'spec_helper'

describe Adauth::Config, :no_ad => true do
    it "should default port to 389" do
        config = Adauth::Config.new
        config.port.should eq 389
    end
    
    it "should calculate the default settings" do
        config = Adauth::Config.new
        config.domain = "example.com"
        config.base.should eq "dc=example, dc=com"
        config.server.should eq "example.com"
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
adauth-2.0.5 spec/adauth_config_spec.rb
adauth-2.0.4 spec/adauth_config_spec.rb
adauth-2.0.3 spec/adauth_config_spec.rb
adauth-2.0.2 spec/adauth_config_spec.rb
adauth-2.0.1 spec/adauth_config_spec.rb
adauth-2.0.0 spec/adauth_config_spec.rb
adauth-2.0.0pre2 spec/adauth_config_spec.rb
adauth-2.0.0pre1 spec/adauth_config_spec.rb
adauth-2.0.0pre spec/adauth_config_spec.rb