Sha256: f440bc378af557c9bbebfd07882673d9ab184023808efdc326649e5b28ca113a
Contents?: true
Size: 359 Bytes
Versions: 4
Compression:
Stored size: 359 Bytes
Contents
require 'spec_helper' require 'nmap/xml/os_match' describe Nmap::XML::OSMatch do describe "#to_s" do let(:name) { 'Linux 2.6.39' } let(:accuracy) { 97 } subject { described_class.new(name,accuracy) } it "should include the name and accuracy" do expect(subject.to_s).to eq("#{name} (#{accuracy}%)") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | spec/xml/os_match_spec.rb |
ruby-nmap-1.0.2 | spec/xml/os_match_spec.rb |
ruby-nmap-1.0.1 | spec/xml/os_match_spec.rb |
ruby-nmap-1.0.0 | spec/xml/os_match_spec.rb |