Sha256: a20ecc9e0541853b19e350db78917d315735a9ca2d9124183469357c06f68706

Contents?: true

Size: 280 Bytes

Versions: 4

Compression:

Stored size: 280 Bytes

Contents

require 'spec_helper'
require 'nmap/xml/address'

describe Nmap::XML::Address do
  describe "#to_s" do
    let(:addr) { '127.0.0.1' }

    subject { described_class.new(:ipv4, addr) }

    it "should return the address" do
      expect(subject.to_s).to eq(addr)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-nmap-1.0.3 spec/xml/address_spec.rb
ruby-nmap-1.0.2 spec/xml/address_spec.rb
ruby-nmap-1.0.1 spec/xml/address_spec.rb
ruby-nmap-1.0.0 spec/xml/address_spec.rb