Sha256: 960cb03a524a91085e372279401186cf7c9d137f4d4d48d4eb57f67089e2f5d6
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'couchrest_extended_document' require 'couchrest_model' 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! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
will_paginate_couchrest-0.3.1 | spec/spec_helper.rb |