differentiated attachment's URI and URL
This commit is contained in:
parent
f1b2315524
commit
c18567f8fc
7 changed files with 52 additions and 23 deletions
|
@ -12,7 +12,8 @@ describe CouchRest::Database do
|
|||
it "should escape the name in the URI" do
|
||||
db = @cr.database("foo/bar")
|
||||
db.name.should == "foo/bar"
|
||||
db.uri.should == "#{COUCHHOST}/foo%2Fbar"
|
||||
db.root.should == "#{COUCHHOST}/foo%2Fbar"
|
||||
db.uri.should == "/foo%2Fbar"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue