spec/spec_helper.rb in langalex-couch_potato-0.1 vs spec/spec_helper.rb in langalex-couch_potato-0.1.1
- old
+ new
@@ -5,10 +5,11 @@
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'couch_potato'
CouchPotato::Config.database_name = 'couch_potato_test'
-CouchPotato::Persistence.Db.delete!
+CouchPotato::Persistence.Db.delete! rescue nil
+CouchPotato::Persistence.Db!
class User
include CouchPotato::Persistence
has_many :comments, :stored => :inline