Created
June 9, 2010 01:08
-
-
Save reinh/430897 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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