Sha256: bc00fbd7f6d42e51a9009934e9607479c45c39ba31f241d912c7b4487e03c90d
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'yaml' require 'iuid' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} def default_config @default_config ||= YAML.load(File.read(File.expand_path(base_dir+'/lib/iuid/default_config.yaml'))) end def test_config return @config unless @config.nil? @config = default_config @config['categories'] = { 'global' => 100, 'global2' => 200, 'global3' => 201, 'max' => 4294967295 } @config['adapter'] = :Memory @config.delete('adapter_options') @config end def base_dir File.dirname(__FILE__)+'/../' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iuid-0.0.4 | spec/spec_helper.rb |