Skip to content

Instantly share code, notes, and snippets.

@reinh
Created June 9, 2010 01:08
Show Gist options
  • Save reinh/430897 to your computer and use it in GitHub Desktop.
Save reinh/430897 to your computer and use it in GitHub Desktop.
Recliner::Database#count with no documents
- should be zero
Recliner::Database#count with 1 document
- should == 1
Recliner::Database.create when it does not exist
- should not raise Exception
- should be ok
Recliner::Database.create when it already exists
- should raise RestClient::PreconditionFailed
Recliner::Database.delete when it does not exist
- should raise RestClient::ResourceNotFound
Recliner::Database.delete when it already exists
- should not raise Exception
Recliner::Database#get(id) when the document does not exist
- should raise RestClient::ResourceNotFound
Recliner::Database#get(id) when the document does exist
- should not raise Exception
- should return the correct attributes
Recliner::Database#post(data)
- should not raise Exception
- should have an id
- should change #count
Finished in 1.085768 seconds
13 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment