Sha256: 946bf98e02e2d23f821fb0f665f5976663a3f667658f62bfaad560f2495f65d0
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
# Test coverage require 'simplecov' SimpleCov.start # Requires require 'adauth' require 'yaml' def default_config Adauth.configure do |c| c.domain = test_data("domain", "domain") c.port = test_data("domain", "port") c.base = test_data("domain", "base") c.server = test_data("domain", "server") c.encryption = test_data("domain", "encryption").to_sym if test_data("domain", "encryption") c.allow_fallback = test_data("domain", "allow_fallback") if test_data("domain", "allow_fallback") c.query_user = test_data("domain", "query_user") c.query_password = test_data("domain", "query_password") end end def test_data(set, key) @yaml ||= YAML::load(File.open('spec/test_data.yml')) @yaml[set][key] end def administrator Adauth::AdObjects::User.where('sAMAccountName', "administrator").first end #def breakable_user # Adauth::AdObjects::User.where('sAMAccountName', test_data("domain", "breakable_user")).first #end def query_user Adauth::AdObjects::User.where('sAMAccountName', test_data("domain", "query_user")).first end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adauth-2.0.2 | spec/spec_helper.rb |
adauth-2.0.1 | spec/spec_helper.rb |