Sha256: e036523585c3db33c273bbe9e5c01b71513f4c91631ecb49e58d0869737a8697
Contents?: true
Size: 797 Bytes
Versions: 4
Compression:
Stored size: 797 Bytes
Contents
require 'spec_helper' require 'xml/cpe_examples' require 'nmap/xml/os' require 'cgi' describe Nmap::XML::OS do subject { @xml.hosts.first.os.classes.first } describe "#type" do it "should parse the type" do expect(subject.type).to eq(:"general purpose") end end describe "#vendor" do it "should parse the vendor" do expect(subject.vendor).to eq('Linux') end end describe "#family" do it "should parse the family" do expect(subject.family).to eq(:Linux) end end describe "#gen" do it "should parse the gen" do expect(subject.gen).to eq(:'3.X') end end describe "#accuracy" do it "should parse the accuracy" do expect(subject.accuracy).to be_between(0,100) end end it_should_behave_like "CPE" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | spec/xml/os_class_spec.rb |
ruby-nmap-1.0.2 | spec/xml/os_class_spec.rb |
ruby-nmap-1.0.1 | spec/xml/os_class_spec.rb |
ruby-nmap-1.0.0 | spec/xml/os_class_spec.rb |