Sha256: aa44ae1ac4179535daf02dd46a75e4d3130ae873ae3211f9b535f5b4b49c814d

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

require 'rspec'
require 'nmap/xml/script'

shared_examples_for "#scripts" do
  describe "#scripts" do
    subject { super().scripts }

    it { is_expected.to be_kind_of(Hash) }
    it { is_expected.not_to be_empty     }

    it "should contain String keys" do
      expect(subject.keys).to all(be_kind_of(String))
    end
    
    it "should contain Nmap::XML::Script values" do
      expect(subject.values).to all(be_kind_of(Nmap::XML::Script))
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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