spec/formatting/http/string_spec.rb in ronin-support-0.1.0.pre2 vs spec/formatting/http/string_spec.rb in ronin-support-0.1.0.pre3
- old
+ new
@@ -22,50 +22,50 @@
it "should provide String#format_http" do
should respond_to(:format_http)
end
- describe "uri_encode" do
+ describe "#uri_encode" do
subject { "mod % 3" }
let(:uri_encoded) { "mod%20%25%203" }
it "should URI encode itself" do
subject.uri_encode.should == uri_encoded
end
end
- describe "uri_decode" do
+ describe "#uri_decode" do
subject { "mod%20%25%203" }
let(:uri_decoded) { "mod % 3" }
it "should URI decode itself" do
subject.uri_decode.should == uri_decoded
end
end
- describe "uri_escape" do
+ describe "#uri_escape" do
subject { "x + y" }
let(:uri_escaped) { "x+%2B+y" }
it "should URI escape itself" do
subject.uri_escape.should == uri_escaped
end
end
- describe "uri_unescape" do
+ describe "#uri_unescape" do
subject { "x+%2B+y" }
let(:uri_unescaped) { "x + y" }
it "should URI unescape itself" do
subject.uri_unescape.should == uri_unescaped
end
end
- describe "format_http" do
+ describe "#format_http" do
subject { "mod % 3" }
let(:http_formatted) { "%6d%6f%64%20%25%20%33" }
it "should format each byte of the String" do