Sha256: 2ba410d2e39ccad6752240605c70f128b558987903d42682935317fd889aa04d

Contents?: true

Size: 745 Bytes

Versions: 1

Compression:

Stored size: 745 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!
#  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.9 test/integration_connection.rb