Sha256: de0e5e05e6330e7e5e6cebae17baa92ea7bc04b278f2432a821643c0d68b1456

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 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'
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!('prefix' => 'test'))
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruote-couch-2.1.7 test/integration_connection.rb
ruote-couch-2.1.5 test/integration_connection.rb
ruote-couch-2.1.4 test/integration_connection.rb