Sha256: 73d8ba7dd31a83d8c7f51f3f7534142da3e018f8a856ae9ba72b26f409741b64

Contents?: true

Size: 912 Bytes

Versions: 2

Compression:

Stored size: 912 Bytes

Contents

# single spec setup
$LOAD_PATH.unshift File.join( File.dirname( File.expand_path( File.dirname( __FILE__ ) ) ),
                              'lib' )
require 'minitest/autorun'

require 'dm-timestamps'
require 'dm-migrations'
require 'dm-validations'
#DataMapper::Logger.new(STDOUT, :debug)

#require 'ixtlan/session'
require 'ixtlan/user_management/user_resource'
require 'ixtlan/audit/resource'
require 'ixtlan/errors/resource'
require 'ixtlan/remote'
require 'ixtlan/gettext'

require 'ixtlan/configuration/resource'

DataMapper.setup :default, 'sqlite3::memory:'
DataMapper.finalize

# single entry in pool for the memory sqlite3
# otherwise sqlite3 sometimes does not find certain tables :(
class DataObjects::Pooling::Pool

  alias :initialize_old :initialize

  def initialize(max_size, resource, args)
    initialize_old( 1, resource, args)
  end
end

DataObjects::Pooling.pools
DataMapper.auto_migrate!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ixtlan-configuration-0.2.2 spec/spec_helper.rb
ixtlan-configuration-0.2.1 spec/spec_helper.rb