Sha256: cb4498eecfcf9d3a204ea466dd92d2b175cdf198bd75b89a5d668fe930e94146

Contents?: true

Size: 506 Bytes

Versions: 12

Compression:

Stored size: 506 Bytes

Contents

require "rubygems"
require "spec" # Satisfies Autotest and anyone else not using the Rake tasks

require File.dirname(__FILE__) + '/../lib/couchrest'

unless defined?(FIXTURE_PATH)
  FIXTURE_PATH = File.dirname(__FILE__) + '/fixtures' 
  SCRATCH_PATH = File.dirname(__FILE__) + '/tmp'

  COUCHHOST = "http://127.0.0.1:5984"
  TESTDB = 'couchrest-test'
end

def reset_test_db!
  cr = CouchRest.new(COUCHHOST)
  db = cr.database(TESTDB)
  db.delete! rescue nil
  db = cr.create_db(TESTDB) rescue nin
  db
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
jchris-couchrest-0.12.2 spec/spec_helper.rb
jchris-couchrest-0.12.4 spec/spec_helper.rb
jchris-couchrest-0.12.5 spec/spec_helper.rb
jchris-couchrest-0.12.6 spec/spec_helper.rb
jgre-couchrest-0.12.6 spec/spec_helper.rb
mattly-couchrest-0.12.1 spec/spec_helper.rb
mattly-couchrest-0.12.2 spec/spec_helper.rb
mattly-couchrest-0.12.6 spec/spec_helper.rb
samflores-couchrest-0.12.3.2 spec/spec_helper.rb
samflores-couchrest-0.12.3 spec/spec_helper.rb
couchrest-0.12.2 spec/spec_helper.rb
couchrest-0.12.4 spec/spec_helper.rb