differentiated attachment's URI and URL

This commit is contained in:
Matt Aimonetti 2009-06-07 18:51:31 -07:00
parent f1b2315524
commit c18567f8fc
7 changed files with 52 additions and 23 deletions

View file

@ -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