Sha256: 50917308fb1fd492ac74eaa12948b7f03dbf1406dadda0d066d3f908470e5476
Contents?: true
Size: 891 Bytes
Versions: 6
Compression:
Stored size: 891 Bytes
Contents
require 'spec_helper' require 'nmap/traceroute' describe Traceroute do subject { @xml.hosts.first.traceroute } describe "#port" do subject { super().port } it { is_expected.to be_kind_of(Integer) } it { is_expected.to be > 0 } it { is_expected.to be < 65535 } end describe "#protocol" do subject { super().protocol } it { is_expected.to be_kind_of(Symbol) } it { is_expected.to eq(:tcp).or eq(:udp) } end describe "#each" do subject { super().each.first } it { is_expected.to be_kind_of(Hop) } describe '#addr' do subject { super().addr } it { is_expected.to be_kind_of(String) } end describe '#ttl' do subject { super().ttl } it { is_expected.to be_kind_of(String) } end describe '#rtt' do subject { super().rtt } it { is_expected.to be_kind_of(String) } end end end
Version data entries
6 entries across 6 versions & 1 rubygems