Sha256: 8375ecff42ba0b07942213c07934e687a63b308ad86b83397399f5da8805ec27
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
require 'spec_helper' require 'nmap/xml/scan' describe Nmap::XML::Scan do let(:type) { :syn } let(:protocol) { :tcp } describe "#initialize" do subject { described_class.new(type,protocol) } it "should accept a type and protocol" do expect(subject.type).to eq(type) expect(subject.protocol).to eq(protocol) end it "should default services to []" do expect(subject.services).to eq([]) end end describe "#to_s" do subject { described_class.new(type,protocol) } it "should include the type and protocol" do expect(subject.to_s).to eq("#{protocol} #{type}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | spec/xml/scan_spec.rb |
ruby-nmap-1.0.2 | spec/xml/scan_spec.rb |
ruby-nmap-1.0.1 | spec/xml/scan_spec.rb |
ruby-nmap-1.0.0 | spec/xml/scan_spec.rb |