Sha256: 0d1a34ea35ebc057993c3a0229af5aeebe78cc9b607f00dae3c72b65f042ae1d

Contents?: true

Size: 780 Bytes

Versions: 3

Compression:

Stored size: 780 Bytes

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adauth-2.0.5 spec/spec_helper.rb
adauth-2.0.4 spec/spec_helper.rb
adauth-2.0.3 spec/spec_helper.rb