Sha256: db03dc7213cb3202c90a3795207633e009cd0dfc468a0ee75a690759cfda8d41
Contents?: true
Size: 641 Bytes
Versions: 4
Compression:
Stored size: 641 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'couchrest' require 'will_paginate' require 'will_paginate_couchrest' require 'spec' require 'spec/autorun' unless defined?(SPEC_COUCH) COUCH_URL = "http://127.0.0.1:5984" COUCH_NAME = 'couchrest-test' SPEC_COUCH = CouchRest.database!("#{COUCH_URL}/#{COUCH_NAME}") end def reset_test_db! SPEC_COUCH.recreate! rescue nil SPEC_COUCH end Spec::Runner.configure do |config| config.before(:all) { reset_test_db! } config.after(:all) do SPEC_COUCH.delete! rescue nil end end
Version data entries
4 entries across 4 versions & 1 rubygems