Sha256: 0aea6a036dd796c96ba4621430cac0fbd0a2b90d74815eb08fde344eb095c9ac

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'
require 'nmap/os_match'

describe 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

6 entries across 6 versions & 1 rubygems

Version Path
ruby-nmap-0.10.0 spec/os_match_spec.rb
ruby-nmap-0.9.3 spec/os_match_spec.rb
ruby-nmap-0.9.2 spec/os_match_spec.rb
ruby-nmap-0.9.1 spec/os_match_spec.rb
ruby-nmap-0.9.0 spec/os_match_spec.rb
ruby-nmap-0.8.0 spec/os_match_spec.rb