Sha256: df43398884d6823aa2f8dcfeb8502b05c1dfaadad3acd3e87d1096a8b6733b05
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
require 'rubygems' gem 'rspec' require 'spec' $:.unshift(File.dirname(__FILE__) + '/../lib') require 'couch_potato' CouchPotato::Config.database_name = 'couch_potato_test' CouchPotato::Persistence.Db.delete! class User include CouchPotato::Persistence has_many :comments, :stored => :inline end class Commenter include CouchPotato::Persistence has_many :comments, :stored => :separately end class Comment include CouchPotato::Persistence validates_presence_of :title property :title belongs_to :commenter end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
langalex-couch_potato-0.1 | spec/spec_helper.rb |