Sha256: 5f34a5287865ae14ce1c97a144a36f317d16a7107eadccfd0e63d959724c4e24

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 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'


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.8 test/integration_connection.rb