This commit is contained in:
Chris Anderson 2008-03-18 23:11:44 -07:00
parent 32c01fadad
commit d356e2356a
2 changed files with 11 additions and 4 deletions

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../lib/couchrest' require File.dirname(__FILE__) + '/../lib/couch_rest'
describe CouchRest do describe CouchRest do

View file

@ -1,10 +1,17 @@
require File.dirname(__FILE__) + '/../lib/couchrest' require File.dirname(__FILE__) + '/../lib/couch_rest'
describe Couchrest::Database do describe CouchRest::Database do
before(:each) do before(:each) do
@cr = Couchrest.new("http://local.grabb.it:5984") @cr = CouchRest.new("http://local.grabb.it:5984")
begin
@cr.create_db('couchrest-test')
rescue RestClient::Request::RequestFailed
end
end end
describe "deleting one" do describe "deleting one" do
before(:each) do
end
it "should start with the test database" do it "should start with the test database" do
@cr.databases.should include('couchrest-test') @cr.databases.should include('couchrest-test')
end end