Use patched riak-ruby-client (closes #32)

The patched version escapes square brackets in the
key and bucket names correctly.
This commit is contained in:
Garret Alfert
2013-11-06 21:56:23 +01:00
parent 08a7cddcfe
commit 3937862358
3 changed files with 27 additions and 8 deletions

View File

@@ -435,6 +435,19 @@ describe "App with Riak backend" do
end
end
context "escaped square brackets in key" do
before do
put "/jimmy/documents/gracehopper%5B1%5D.jpg", "super image"
end
it "delivers the data correctly" do
header "Authorization", "Bearer 123"
get "/jimmy/documents/gracehopper%5B1%5D.jpg"
last_response.body.must_equal "super image"
end
end
context "invalid JSON" do
context "empty body" do
before do