public
Description: Ruby interface to CouchDB
Homepage: http://code.google.com/p/activecouch/
Clone URL: git://github.com/JackDanger/active_couch.git
- Corrected error in description of spec
- More verbose expectations

git-svn-id: http://activecouch.googlecode.com/svn/trunk@61 
e44de9e2-1e40-0410-bb6c-c9d70e891a3e
arun.thampi (author)
Mon Jan 21 09:03:34 -0800 2008
commit  3c7fae888f3ebb79c2f326c48631c484c90d5443
tree    7b7739440bac41c423547d037dc51eb054b13ecf
parent  066b6360490df8a5b9e81c244c2f548b876ecd3e
...
1
2
3
 
4
5
6
...
25
26
27
28
 
29
30
31
32
33
 
34
35
36
...
1
2
 
3
4
5
6
...
25
26
27
 
28
29
30
31
32
 
33
34
35
36
0
@@ -1,6 +1,6 @@
0
 require File.dirname(__FILE__) + '/../spec_helper.rb'
0
 
0
-describe "ActiveCouch::Base #create method" do
0
+describe "ActiveCouch::Base #delete method" do
0
   before(:each) do
0
     class Person < ActiveCouch::Base
0
       site 'http://localhost:5984/'
0
@@ -25,12 +25,12 @@ describe "ActiveCouch::Base #create method" do
0
     response.body.index('"total_rows":0').should_not == nil
0
   end
0
   
0
- it "should raise an error if the revision for the object is not set" do
0
+ it "should raise an error if the revision for the object is not set and is attempted to be deleted" do
0
     p = Person.new(:name => 'McLovin')
0
     lambda { p.delete }.should raise_error(ActiveCouch::ActiveCouchError, "You must specify a revision for the document to be deleted")
0
   end
0
   
0
- it "should raise an error if the id for the object is not set, but the revision is set" do
0
+ it "should raise an error if the id for the object is not set, but the revision is set and is attempted to be deleted" do
0
     p = Person.new(:name => 'McLovin')
0
     p.rev = '123'
0
     lambda { p.delete }.should raise_error(ActiveCouch::ActiveCouchError, "You must specify an ID for the document to be deleted")

Comments

    No one has commented yet.