Escape the directory name when saving it as an index (fixes #15)

This commit is contained in:
2012-10-22 12:19:48 +02:00
parent ba979dfe04
commit 544400b138
2 changed files with 3 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ describe "Directories" do
put "/jimmy/tasks/home/trash", "take out the trash"
object = directory_bucket.get("jimmy:tasks")
object.indexes["directory_bin"].must_include "/"
object.indexes["directory_bin"].must_include CGI.escape("/")
object.data.wont_be_nil
object = directory_bucket.get("jimmy:")