spec/riak/client_spec.rb in ripple-0.6.0 vs spec/riak/client_spec.rb in ripple-0.6.1

- old
+ new

@@ -163,7 +163,12 @@ it "should allow requesting bucket properties without the keys" do @http.should_receive(:get).with(200, "/riak/", "foo", {:keys => false}, {}).and_return(@payload) @client.bucket("foo", :keys => false) end + + it "should escape bucket names with invalid characters" do + @http.should_receive(:get).with(200, "/riak/", "foo%2Fbar%20", {:keys => false}, {}).and_return(@payload) + @client.bucket("foo/bar ", :keys => false) + end end end