clean up some deprecated specs and old comments
This commit is contained in:
parent
485bba41ef
commit
accb50dd02
|
@ -58,7 +58,6 @@ describe CouchRest::Database do
|
||||||
end
|
end
|
||||||
it "should return the result of the temporary function" do
|
it "should return the result of the temporary function" do
|
||||||
rs = @db.temp_view(:map => "function(doc){emit(doc.beverage, doc.count)}", :reduce => "function(beverage,counts){return sum(counts)}")
|
rs = @db.temp_view(:map => "function(doc){emit(doc.beverage, doc.count)}", :reduce => "function(beverage,counts){return sum(counts)}")
|
||||||
# rs.should == 'x'
|
|
||||||
rs['rows'][0]['value'].should == 9
|
rs['rows'][0]['value'].should == 9
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -240,11 +239,6 @@ describe CouchRest::Database do
|
||||||
@db.save_doc(@doc)
|
@db.save_doc(@doc)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Depreacated
|
|
||||||
# it "should get the attachment with the doc's _id" do
|
|
||||||
# @db.fetch_attachment("mydocwithattachment", "test.html").should == @attach
|
|
||||||
# end
|
|
||||||
|
|
||||||
it "should get the attachment with the doc itself" do
|
it "should get the attachment with the doc itself" do
|
||||||
@db.fetch_attachment(@db.get('mydocwithattachment'), 'test.html').should == @attach
|
@db.fetch_attachment(@db.get('mydocwithattachment'), 'test.html').should == @attach
|
||||||
end
|
end
|
||||||
|
@ -460,7 +454,6 @@ describe CouchRest::Database do
|
||||||
it "should fail to resave without the rev" do
|
it "should fail to resave without the rev" do
|
||||||
@doc['them-keys'] = 'huge'
|
@doc['them-keys'] = 'huge'
|
||||||
@doc['_rev'] = 'wrong'
|
@doc['_rev'] = 'wrong'
|
||||||
# @db.save_doc(@doc)
|
|
||||||
lambda {@db.save_doc(@doc)}.should raise_error
|
lambda {@db.save_doc(@doc)}.should raise_error
|
||||||
end
|
end
|
||||||
it "should update the document" do
|
it "should update the document" do
|
||||||
|
@ -640,9 +633,7 @@ describe CouchRest::Database do
|
||||||
end
|
end
|
||||||
it "should delete the database" do
|
it "should delete the database" do
|
||||||
db = @cr.database('couchrest-test')
|
db = @cr.database('couchrest-test')
|
||||||
# r =
|
|
||||||
db.delete!
|
db.delete!
|
||||||
# r['ok'].should == true
|
|
||||||
@cr.databases.should_not include('couchrest-test')
|
@cr.databases.should_not include('couchrest-test')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -710,8 +701,5 @@ describe CouchRest::Database do
|
||||||
begin @db2.recreate! rescue nil end
|
begin @db2.recreate! rescue nil end
|
||||||
@cr.databases.should include(@db2.name)
|
@cr.databases.should include(@db2.name)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in a new issue