Sha256: 9215a423254c4843946d59d67e978eabba634d5602e70293b09c7ed01e9c660e
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
# # testing ruote-dm # # Thu Feb 4 13:44:13 JST 2010 # require 'yajl' rescue require 'json' require 'rufus-json' Rufus::Json.detect_backend require 'ruote-dm' if ARGV.include?('-l') FileUtils.rm('debug.log') rescue nil DataMapper::Logger.new('debug.log', :debug) elsif ARGV.include?('-ls') DataMapper::Logger.new(STDOUT, :debug) end DataMapper.setup(:default, 'postgres://localhost/ruote_test') #DataMapper.setup(:default, 'sqlite3::memory:') #DataMapper.setup(:default, 'sqlite3:ruote_test.db') #DataMapper.repository(:default) do # Ruote::Dm::Document.all.destroy! # Ruote::Dm::Document.auto_upgrade! #end def new_storage (opts) Ruote::Dm::DmStorage.new(:default, opts) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruote-dm-2.1.7 | test/integration_connection.rb |
ruote-dm-2.1.6 | test/integration_connection.rb |