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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user