Sha256: 35c3d790bc2c0be16c694c238397ce182c252147a3ed2d57aefd88041ef9c112

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'

module IntegrationSpecHelper
  def create_test_db(name="couchobject_test")
    CouchObject::Database.create("http://localhost:5984", name)
  end
  
  def open_test_db(name="couchobject_test")
    CouchObject::Database.open("http://localhost:5984/#{name}")    
  end
  
  def delete_test_db(name="couchobject_test")
    CouchObject::Database.delete!("http://localhost:5984", "couchobject_test")
  end
  
  def create_and_open_test_db(name="couchobject_test")
    create_test_db(name)
    open_test_db(name)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
couchobject-0.6.0 spec/integration/integration_helper.rb
couchobject-0.6.1 spec/integration/integration_helper.rb