moved specs so the autotest filemapping works better

This commit is contained in:
Chris Anderson 2008-09-30 16:21:28 -07:00
parent 4d0b9302f7
commit 902e1bed26
3 changed files with 4 additions and 2 deletions

View file

@ -59,6 +59,8 @@ module CouchRest
RestClient.get "#{@root}/#{doc}/#{name}" RestClient.get "#{@root}/#{doc}/#{name}"
end end
# Save a document to CouchDB. This will use the <tt>_id</tt> field from the document as the id for PUT, or request a new UUID from CouchDB, if no <tt>_id</tt> is present on the document. IDs are attached to documents on the client side because POST has the curious property of being automatically retried by proxies in the event of network segmentation and lost responses. # Save a document to CouchDB. This will use the <tt>_id</tt> field from the document as the id for PUT, or request a new UUID from CouchDB, if no <tt>_id</tt> is present on the document. IDs are attached to documents on the client side because POST has the curious property of being automatically retried by proxies in the event of network segmentation and lost responses.
def save doc def save doc
if doc['_attachments'] if doc['_attachments']

View file

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

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/spec_helper' require File.dirname(__FILE__) + '/../../spec_helper'
describe CouchRest::Database do describe CouchRest::Database do
before(:each) do before(:each) do