Add support for database compaction.
This commit is contained in:
parent
12c09085df
commit
dd7f109878
2 changed files with 17 additions and 2 deletions
|
@ -461,6 +461,16 @@ describe CouchRest::Database do
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
describe "compacting a database" do
|
||||
it "should compact the database" do
|
||||
db = @cr.database('couchrest-test')
|
||||
# r =
|
||||
db.compact!
|
||||
# r['ok'].should == true
|
||||
end
|
||||
end
|
||||
|
||||
describe "deleting a database" do
|
||||
it "should start with the test database" do
|
||||
@cr.databases.should include('couchrest-test')
|
||||
|
@ -475,4 +485,4 @@ describe CouchRest::Database do
|
|||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue