Sha256: 11754b1d0cae64c752db96a0a2b9891d0b74e6def91261fa0de7948f9411cb3e

Contents?: true

Size: 608 Bytes

Versions: 4

Compression:

Stored size: 608 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

4 entries across 4 versions & 1 rubygems

Version Path
couchrest-uniqueness-validation-0.2.1 spec/spec_helper.rb
couchrest-uniqueness-validation-0.2.0 spec/spec_helper.rb
couchrest-uniqueness-validation-0.1.1 spec/spec_helper.rb
couchrest-uniqueness-validation-0.1.0 spec/spec_helper.rb