Sha256: 4abe20992f3576f51df5344d6d344cf4751ab7ec9e8ec0d01a212d124044aa0e
Contents?: true
Size: 879 Bytes
Versions: 1
Compression:
Stored size: 879 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') || ARGV.include?('--l') FileUtils.rm('debug.log') rescue nil DataMapper::Logger.new('debug.log', :debug) elsif ARGV.include?('-ls') || ARGV.include?('--ls') DataMapper::Logger.new(STDOUT, :debug) end DataMapper.setup(:default, 'postgres://localhost/ruote_test') #DataMapper.setup(:default, 'mysql://root:root@localhost/ruote_test') #DataMapper.setup(:default, 'sqlite3::memory:') #DataMapper.setup(:default, 'sqlite3:ruote_test.db') #DataMapper.repository(:default) do # require 'dm-migrations' # gem install dm-migrations # Ruote::Dm::Document.all.destroy! rescue nil # Ruote::Dm::Document.auto_upgrade! #end def new_storage (opts) Ruote::Dm::Storage.new(:default, opts) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruote-dm-2.2.0 | test/functional_connection.rb |