Sha256: a4fc9abb349915c90155d22e37f608bd4d73c273b63277fa42434d44055fb2d3
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 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, 'sqlite3::memory:') #DataMapper.setup(:default, 'sqlite3:ruote_test.db') #DataMapper.repository(:default) do # Ruote::Dm::Document.all.destroy! rescue nil # Ruote::Dm::Document.auto_upgrade! #end def new_storage (opts) Ruote::Dm::DmStorage.new(:default, opts) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruote-dm-2.1.10 | test/functional_connection.rb |