Sha256: ad7cfeafcdb472c33adea4631a82a7c564ecb3dd919b87204152d9f5e77ff4b0
Contents?: true
Size: 858 Bytes
Versions: 17
Compression:
Stored size: 858 Bytes
Contents
require 'spec_helper' require 'ronin/formatting/extensions/http/integer' describe Integer do subject { 0x20 } it "should provide String#uri_encode" do should respond_to(:uri_encode) end it "should provide String#uri_escape" do should respond_to(:uri_escape) end it "should provide String#format_http" do should respond_to(:format_http) end describe "#uri_encode" do let(:uri_encoded) { '%20' } it "should URI encode itself" do subject.uri_encode.should == uri_encoded end end describe "#uri_escape" do let(:uri_escaped) { '+' } it "should URI escape itself" do subject.uri_escape.should == uri_escaped end end describe "#format_http" do let(:http_formatted) { '%20' } it "should format the byte" do subject.format_http.should == http_formatted end end end
Version data entries
17 entries across 17 versions & 1 rubygems