Sha256: 140ea0cb2fdf41bec418cf81ebd0f0e7d30ad32f514a57223d24c09de220dc1a

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

#
# testing ruote-couch
#
# Sun Dec 13 20:22:43 JST 2009
#

require 'yajl' rescue require 'json'
require 'rufus-json'
Rufus::Json.detect_backend

begin
  require 'patron' unless ARGV.include?('--net')
rescue LoadError
  # then use 'net/http'
end

require 'ruote/couch/storage'

# TODO : maybe place delete_all_test_databases here


def new_storage (opts)

  opts ||= {}

  Ruote::Couch::CouchStorage.new(
    '127.0.0.1',
    5984,
    opts.merge!('couch_prefix' => 'test', 'couch_timeout' => 1))
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-couch-2.1.9 test/integration_connection.rb