Sha256: 4b02124242b431c34866295f1558753e861e3eed8d119ff0d6759746d7f1082c
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
require File.expand_path("../../spec_helper", __FILE__) describe Riak::Util::Escape do before :each do @object = Object.new @object.extend(Riak::Util::Escape) end it "should escape standard non-safe characters" do @object.escape("some string").should == "some%20string" @object.escape("another^one").should == "another%5Eone" end it "should escape slashes" do @object.escape("some/inner/path").should == "some%2Finner%2Fpath" end it "should convert the bucket or key to a string before escaping" do @object.escape(125).should == '125' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riak-client-0.7.1 | spec/riak/escape_spec.rb |
riak-client-0.7.0 | spec/riak/escape_spec.rb |