Sha256: 26c6d21f0a1d1bbaadfb8bd5669ae00d0a0568624a1fecbfafdc0a38ff868a3f

Contents?: true

Size: 517 Bytes

Versions: 8

Compression:

Stored size: 517 Bytes

Contents

require 'rubygems'
require 'spec'

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

require 'couch_potato'

CouchPotato::Config.database_name = 'couch_potato_test'

class Child
  include CouchPotato::Persistence

  property :text
end



class Comment
  include CouchPotato::Persistence

  validates_presence_of :title

  property :title
end

def recreate_db
  CouchPotato.couchrest_database.recreate!
end
recreate_db

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
couch_potato-0.2.22 spec/spec_helper.rb
couch_potato-0.2.21 spec/spec_helper.rb
couch_potato-0.2.20 spec/spec_helper.rb
couch_potato-0.2.19 spec/spec_helper.rb
couch_potato-0.2.18 spec/spec_helper.rb
couch_potato-0.2.17 spec/spec_helper.rb
couch_potato-0.2.16 spec/spec_helper.rb
couch_potato-0.2.15 spec/spec_helper.rb