Sha256: 60d2e1d99cd52b15e76d55bc75eed2eca81e5d73481fa9ef9b1d671fe9a982c0

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

require 'spec_helper'
require 'cpe_examples'

require 'nmap/os'
require 'cgi'

describe OS do
  subject { @xml.hosts.first.os.classes.first }

  it "should parse the type" do
    subject.type.should == :"general purpose"
  end

  it "should parse the vendor" do
    subject.vendor.should == 'Linux'
  end

  it "should parse the family" do
    subject.family.should == :Linux
  end

  it "should parse the gen" do
    subject.gen.should == :'2.6.X'
  end

  it "should parse the accuracy" do
    subject.accuracy.should be_between(0,100)
  end

  it_should_behave_like "CPE"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-nmap-0.7.0 spec/os_class_spec.rb