Sha256: 02ef6c26996eab2ee5f56304071bd5353fd2d2b9dd389d991f83555bf0139085
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
require "spec" require 'pathname' require Pathname(__FILE__).dirname.parent.expand_path + 'lib/couchdb_adapter' # use local copy of dm-core if available local_dm_core_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'dm-core', 'lib')) $LOAD_PATH.unshift(local_dm_core_lib) if File.directory?(local_dm_core_lib) begin gem 'dm-serializer' require 'dm-serializer' DMSERIAL_AVAILABLE = true rescue LoadError DMSERIAL_AVAILABLE = false end Spec::Runner.configure do |config| config.before(:all) do @adapter = DataMapper.setup(:default, "couchdb://localhost:5984/test_cdb_adapter") @repository = DataMapper.repository(@adapter.name) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-couchdb-adapter-0.10.2 | spec/spec_helper.rb |