patch restclient locally instead of hoping/waiting for an upstream patch.
This commit is contained in:
parent
d6191711eb
commit
0519fc5765
2 changed files with 14 additions and 1 deletions
|
@ -21,4 +21,18 @@ class Time
|
||||||
# rescue
|
# rescue
|
||||||
# fallback
|
# fallback
|
||||||
# end
|
# end
|
||||||
|
end
|
||||||
|
|
||||||
|
module RestClient
|
||||||
|
def self.copy(url, headers={})
|
||||||
|
Request.execute(:method => :copy,
|
||||||
|
:url => url,
|
||||||
|
:headers => headers)
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.move(url, headers={})
|
||||||
|
Request.execute(:method => :move,
|
||||||
|
:url => url,
|
||||||
|
:headers => headers)
|
||||||
|
end
|
||||||
end
|
end
|
|
@ -492,7 +492,6 @@ describe CouchRest::Database do
|
||||||
it "should work" do
|
it "should work" do
|
||||||
@db.copy @doc, @docid
|
@db.copy @doc, @docid
|
||||||
newdoc = @db.get(@docid)
|
newdoc = @db.get(@docid)
|
||||||
debugger
|
|
||||||
newdoc['artist'].should == 'Zappa'
|
newdoc['artist'].should == 'Zappa'
|
||||||
end
|
end
|
||||||
it "should fail without an _id" do
|
it "should fail without an _id" do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue