spec/create_spec.rb in langalex-couch_potato-0.1 vs spec/create_spec.rb in langalex-couch_potato-0.1.1

- old
+ new

@@ -1,8 +1,12 @@ require File.dirname(__FILE__) + '/spec_helper' describe "create" do + before(:all) do + CouchPotato::Persistence.Db! + end + describe "succeeds" do before(:each) do @comment = Comment.new :title => 'my_title' @comment.save! end @@ -31,9 +35,10 @@ end describe "fails" do before(:each) do CouchPotato::Persistence.Db.delete! + CouchPotato::Persistence.Db! @comment = Comment.new @comment.save end it "should not assign an id" do \ No newline at end of file