spec/spec_helper.rb in langalex-couch_potato-0.2.6 vs spec/spec_helper.rb in langalex-couch_potato-0.2.7
- old
+ new
@@ -4,16 +4,17 @@
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'couch_potato'
CouchPotato::Config.database_name = 'couch_potato_test'
+CouchPotato::Config.database_server = 'http://127.0.0.1:5984/'
class Comment
include CouchPotato::Persistence
-
+
validates_presence_of :title
-
+
property :title
belongs_to :commenter
end
def recreate_db