Sha256: 4c18e6f8dc3ec33ba4b53f50df2d83f118fda6b7b2e79f6859d27d7251ab3706
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'couchrest' require 'couchrest/mixins/validation' require 'couchrest-uniqueness-validation' 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 Spec::Runner.configure do |config| config.before(:all) { SPEC_COUCH.recreate! rescue nil } config.after(:all) do SPEC_COUCH.delete! rescue nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchrest-uniqueness-validation-0.0.1 | spec/spec_helper.rb |