Sha256: da18d99ff7cf2daca19c0abc5cc31209fe1ea9569e016524e0eb3c1de243edd0

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

require 'rubygems'
require 'spec'

$:.unshift(File.dirname(__FILE__) + '/../lib')

require 'couch_potato'

CouchPotato::Config.database_name = 'couch_potato_test'


class Comment
  include CouchPotato::Persistence

  validates_presence_of :title

  property :title
end

def recreate_db
  CouchPotato.couchrest_database.delete! rescue nil
  CouchPotato.couchrest_database.server.create_db CouchPotato::Config.database_name
end
recreate_db

Spec::Matchers.define :string_matching do |regex|
  match do |string|
    string =~ regex
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
langalex-couch_potato-0.2.11 spec/spec_helper.rb
langalex-couch_potato-0.2.12 spec/spec_helper.rb
langalex-couch_potato-0.2.9 spec/spec_helper.rb
couch_potato-0.2.12 spec/spec_helper.rb