Sha256: 8313436d2d89fd249223fe449d80199f356aea12bf80f6c262e6319290701928
Contents?: true
Size: 952 Bytes
Versions: 1
Compression:
Stored size: 952 Bytes
Contents
require 'spec_helper' require 'ronin/scanners/url_scanner' describe Scanners::URLScanner do let(:url) { URI('http://www.example.com/path?bla=1') } subject do described_class.object do def scan yield 'http://www.example.com/path?bla=1' end end end it "should normalize results into URI objects" do result = subject.first result.class.should == URI::HTTP result.scheme.should == url.scheme result.host.should == url.host result.port.should == url.port result.path.should == url.path result.query.should == url.query end it "should convert results into Url resources" do resource = subject.each_resource.first resource.class.should == URL resource.scheme.name.should == url.scheme resource.host_name.address.should == url.host resource.port.number.should == url.port resource.path.should == url.path resource.query_string.should == url.query end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-scanners-1.0.0.pre1 | spec/scanners/url_scanner_spec.rb |